50 , _protecting_lock(NULL) |
50 , _protecting_lock(NULL) |
51 #endif |
51 #endif |
52 { |
52 { |
53 _size = 0; |
53 _size = 0; |
54 _count = 0; |
54 _count = 0; |
55 } |
|
56 |
|
57 template <class Chunk> |
|
58 FreeList<Chunk>::FreeList(Chunk* fc) : |
|
59 _head(fc), _tail(fc) |
|
60 #ifdef ASSERT |
|
61 , _protecting_lock(NULL) |
|
62 #endif |
|
63 { |
|
64 _size = fc->size(); |
|
65 _count = 1; |
|
66 } |
55 } |
67 |
56 |
68 template <class Chunk> |
57 template <class Chunk> |
69 void FreeList<Chunk>::link_head(Chunk* v) { |
58 void FreeList<Chunk>::link_head(Chunk* v) { |
70 assert_proper_lock_protection(); |
59 assert_proper_lock_protection(); |