| 96 | } |
| 97 | |
| 98 | void Clear() |
| 99 | { |
| 100 | Platform::MemoryClear(_staticBuckets, sizeof(_staticBuckets)); |
| 101 | #if THREAD_LOCAL_USE_DYNAMIC_BUCKETS |
| 102 | Platform::Free(_dynamicBuckets); |
| 103 | _dynamicBuckets = nullptr; |
| 104 | #endif |
| 105 | } |
| 106 | |
| 107 | protected: |
| 108 | Bucket& GetBucket() |