diff options
author | brunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-07-22 20:09:17 +0000 |
---|---|---|
committer | brunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-07-22 20:09:17 +0000 |
commit | 8eafc4bf6c7c58cf8a1b3a664c8281e56b114de2 (patch) | |
tree | 6f7ea53bfb0c127dcc59c9c2543418779c657d81 /ace/Free_List.h | |
parent | 47c91f67f8ee10601b5375fe267809bf944bfcbc (diff) | |
download | ATCD-8eafc4bf6c7c58cf8a1b3a664c8281e56b114de2.tar.gz |
Changed the mutex pointer in ACE_Locked_Freelist to just a regular
variable.
Diffstat (limited to 'ace/Free_List.h')
-rw-r--r-- | ace/Free_List.h | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/ace/Free_List.h b/ace/Free_List.h index f72581f6bc2..8f66b69d4c9 100644 --- a/ace/Free_List.h +++ b/ace/Free_List.h @@ -62,15 +62,13 @@ public: size_t prealloc = ACE_DEFAULT_FREE_LIST_PREALLOC, size_t lwm = ACE_DEFAULT_FREE_LIST_LWM, size_t hwm = ACE_DEFAULT_FREE_LIST_HWM, - size_t inc = ACE_DEFAULT_FREE_LIST_INC, - LOCK *mutex = 0); + size_t inc = ACE_DEFAULT_FREE_LIST_INC); // Constructor takes a <mode> (i.e., ACE_FREE_LIST_WITH_POOL or // ACE_PURE_FREE_LIST), a count of the number of nodes to // <prealloc>, a low and high water mark (<lwm> and <hwm>) that // indicate when to allocate more nodes, an increment value (<inc>) // that indicates how many nodes to allocate when the list must - // grow, and a pointer to a <mutex> that is used to determine the - // synchronization properties of the free list. + // grow. virtual ~ACE_Locked_Free_List (void); // Destructor - removes all the elements from the free_list. @@ -89,12 +87,6 @@ public: virtual void resize (size_t newsize); // Resizes the free list to <newsize>. - LOCK &get_mutex (void); - // Returns a reference to the mutex. - - void set_mutex (LOCK &mutex); - // Sets the mutex to <mutex>. - protected: virtual void alloc (size_t n); // Allocates <n> extra nodes for the freelist. @@ -121,12 +113,9 @@ protected: size_t size_; // Keeps track of the size of the list. - LOCK *mutex_; + LOCK mutex_; // Synchronization variable for <ACE_Timer_Queue>. - int delete_mutex_; - // flag to remember ownership of the mutex. - private: // = Don't allow these operations for now. ACE_Locked_Free_List (const ACE_Locked_Free_List<T, LOCK> &); |