version 1.54, 2006/01/30 16:16:48
|
version 1.55, 2006/02/01 21:12:42
|
|
|
AutoPtr<AtomicInt> _actual_count; | AutoPtr<AtomicInt> _actual_count; |
DQueue *_dq_next; | DQueue *_dq_next; |
static DQueue<L> *_headOfFreeList; | static DQueue<L> *_headOfFreeList; |
static const int BLOCK_SIZE; |
enum { BLOCK_SIZE = 200 }; |
static Mutex _alloc_mut; | static Mutex _alloc_mut; |
| |
public: | public: |
|
|
AsyncDQueue *_dq_next; | AsyncDQueue *_dq_next; |
| |
static AsyncDQueue *_headOfFreeList; | static AsyncDQueue *_headOfFreeList; |
static const int BLOCK_SIZE; |
enum { BLOCK_SIZE = 20 }; |
static Mutex _alloc_mut; | static Mutex _alloc_mut; |
| |
/** | /** |
|
|
}; | }; |
| |
template<class L> DQueue<L> * DQueue<L>::_headOfFreeList = 0; | template<class L> DQueue<L> * DQueue<L>::_headOfFreeList = 0; |
template<class L> const int DQueue<L>::BLOCK_SIZE = 200; |
|
template<class L> Mutex DQueue<L>::_alloc_mut; | template<class L> Mutex DQueue<L>::_alloc_mut; |
| |
template<class L> void *DQueue<L>::operator new(size_t size) | template<class L> void *DQueue<L>::operator new(size_t size) |
|
|
} | } |
| |
template<class L> AsyncDQueue<L> * AsyncDQueue<L>::_headOfFreeList =0; | template<class L> AsyncDQueue<L> * AsyncDQueue<L>::_headOfFreeList =0; |
template<class L> const int AsyncDQueue<L>::BLOCK_SIZE = 20; |
|
template<class L> Mutex AsyncDQueue<L>::_alloc_mut; | template<class L> Mutex AsyncDQueue<L>::_alloc_mut; |
| |
template<class L> void * AsyncDQueue<L>::operator new(size_t size) | template<class L> void * AsyncDQueue<L>::operator new(size_t size) |