| 25 | } |
| 26 | |
| 27 | MmapLeakyBucket::~MmapLeakyBucket() { |
| 28 | if (NULL != m_poLock) |
| 29 | delete m_poLock; |
| 30 | m_poLock = NULL; |
| 31 | |
| 32 | if (NULL != m_ptBucket) { |
| 33 | freeMmapPtr((void *) m_ptBucket, sizeof(Bucket_t)); |
| 34 | } |
| 35 | m_ptBucket = NULL; |
| 36 | } |
| 37 | |
| 38 | void * MmapLeakyBucket::getMmapPtr(const char * filePath, uint32_t len, int * isNewFile) { |
| 39 | *isNewFile = 0; |
nothing calls this directly
no outgoing calls
no test coverage detected