| 95 | } |
| 96 | |
| 97 | void remove(HashKeyType1 key1, HashKeyType2 key2, bool useRef = false) |
| 98 | { |
| 99 | HashEntry *entry = NULL; |
| 100 | util::CriticalSection::SafeLock l(mutex); |
| 101 | |
| 102 | if((entry = findEntry(key1, key2)) != NULL) |
| 103 | { |
| 104 | if(useRef && entry->refCount > 0) entry->refCount--; |
| 105 | if(!useRef || entry->refCount <= 0) killEntry(entry); |
| 106 | } |
| 107 | } |
| 108 | |
| 109 | int getCount(void) { return count; } |
| 110 |
no outgoing calls
no test coverage detected