From e282a2bc9f65e7476487a3e4e4e3476c20407c4e Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Thu, 31 Aug 2006 19:52:16 +0000 Subject: mt_allocator.h: Remove volatile qualifiers from data members and corresponding locals and... 2006-08-31 Richard Guenther * include/ext/mt_allocator.h: Remove volatile qualifiers from data members and corresponding locals and function signatures. From-SVN: r116606 --- libstdc++-v3/include/ext/mt_allocator.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'libstdc++-v3/include/ext/mt_allocator.h') diff --git a/libstdc++-v3/include/ext/mt_allocator.h b/libstdc++-v3/include/ext/mt_allocator.h index 07de3ed..ae20d16 100644 --- a/libstdc++-v3/include/ext/mt_allocator.h +++ b/libstdc++-v3/include/ext/mt_allocator.h @@ -195,13 +195,13 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx) union _Block_record { // Points to the block_record of the next free block. - _Block_record* volatile _M_next; + _Block_record* _M_next; }; struct _Bin_record { // An "array" of pointers to the first free block. - _Block_record** volatile _M_first; + _Block_record** _M_first; // A list of the initial addresses of all allocated blocks. _Block_address* _M_address; @@ -244,7 +244,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx) // An "array" of bin_records each of which represents a specific // power of 2 size. Memory to this "array" is allocated in // _M_initialize(). - _Bin_record* volatile _M_bin; + _Bin_record* _M_bin; // Actual value calculated in _M_initialize(). size_t _M_bin_size; @@ -271,7 +271,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx) struct _Thread_record { // Points to next free thread id record. NULL if last record in list. - _Thread_record* volatile _M_next; + _Thread_record* _M_next; // Thread id ranging from 1 to _S_max_threads. size_t _M_id; @@ -280,7 +280,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx) union _Block_record { // Points to the block_record of the next free block. - _Block_record* volatile _M_next; + _Block_record* _M_next; // The thread id of the thread which has requested this block. size_t _M_thread_id; @@ -291,7 +291,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx) // An "array" of pointers to the first free block for each // thread id. Memory to this "array" is allocated in // _S_initialize() for _S_max_threads + global pool 0. - _Block_record** volatile _M_first; + _Block_record** _M_first; // A list of the initial addresses of all allocated blocks. _Block_address* _M_address; @@ -300,8 +300,8 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx) // blocks that are on the freelist/used for each thread id. // Memory to these "arrays" is allocated in _S_initialize() for // _S_max_threads + global pool 0. - size_t* volatile _M_free; - size_t* volatile _M_used; + size_t* _M_free; + size_t* _M_used; // Each bin has its own mutex which is used to ensure data // integrity while changing "ownership" on a block. The mutex @@ -365,7 +365,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx) // An "array" of bin_records each of which represents a specific // power of 2 size. Memory to this "array" is allocated in // _M_initialize(). - _Bin_record* volatile _M_bin; + _Bin_record* _M_bin; // Actual value calculated in _M_initialize(). size_t _M_bin_size; -- cgit v1.1