diff options
author | bkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-07-12 23:40:49 +0000 |
---|---|---|
committer | bkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-07-12 23:40:49 +0000 |
commit | e83fdb666362e329fd1fee2e59c73bf9c34d5fda (patch) | |
tree | a087880f3d1a9aa78b89785063658c0d3f00f24e | |
parent | f75ee12ae547fcc782318b318b57e976decac0f4 (diff) | |
download | ppe42-gcc-e83fdb666362e329fd1fee2e59c73bf9c34d5fda.tar.gz ppe42-gcc-e83fdb666362e329fd1fee2e59c73bf9c34d5fda.zip |
2004-07-12 Benjamin Kosnik <bkoz@redhat.com>
* docs/html/abi.html: Remove non-public qualification.
* include/bits/concurrence.h: Tweak comments.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84586 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | libstdc++-v3/ChangeLog | 6 | ||||
-rw-r--r-- | libstdc++-v3/docs/html/abi.html | 2 | ||||
-rw-r--r-- | libstdc++-v3/include/bits/concurrence.h | 7 |
3 files changed, 11 insertions, 4 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index f7a49d7c355..6623438b834 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2004-07-12 Benjamin Kosnik <bkoz@redhat.com> + + * docs/html/abi.html: Remove non-public qualification. + + * include/bits/concurrence.h: Tweak comments. + 2004-07-11 Paolo Carlini <pcarlini@suse.de> Add wchar_t counterparts of the basic_streambbuf<char> tests. diff --git a/libstdc++-v3/docs/html/abi.html b/libstdc++-v3/docs/html/abi.html index ac54238127a..e48bb4b8bf7 100644 --- a/libstdc++-v3/docs/html/abi.html +++ b/libstdc++-v3/docs/html/abi.html @@ -581,7 +581,7 @@ number to increase, say from "libstdc++.so.3.0.4" to std::basic_streambuf, et al. </li> -<li> adding a non-private explicit copy constructor or destructor to a +<li> adding an explicit copy constructor or destructor to a class that would otherwise have implicit versions. This will change the way the compiler deals with this class in by-value return statements or parameters: instead of being passing instances of this diff --git a/libstdc++-v3/include/bits/concurrence.h b/libstdc++-v3/include/bits/concurrence.h index 7b2fae951c6..c436a1b0806 100644 --- a/libstdc++-v3/include/bits/concurrence.h +++ b/libstdc++-v3/include/bits/concurrence.h @@ -71,14 +71,15 @@ namespace __gnu_cxx { typedef __glibcxx_mutex_type mutex_type; - class lock + // Scoped lock idiom. + // Acquire the mutex here with a constructor call, then release with + // the destructor call in accordance with RAII style. + class lock { // Externally defined and initialized. mutex_type& device; public: - // Acquire the mutex here with a constructor call. This ensures - // that it is released in exit or during stack unwinding. explicit lock(mutex_type& name) : device(name) { __glibcxx_mutex_lock(device); } |