| 246 | } |
| 247 | |
| 248 | void |
| 249 | TSMutexDestroy(TSMutex m) |
| 250 | { |
| 251 | sdk_assert(sdk_sanity_check_mutex(m) == TS_SUCCESS); |
| 252 | ProxyMutex *mutexp = reinterpret_cast<ProxyMutex *>(m); |
| 253 | |
| 254 | if (mutexp) { |
| 255 | ink_release_assert(mutexp->refcount() == 0); |
| 256 | mutexp->free(); |
| 257 | } |
| 258 | } |
| 259 | |
| 260 | /* The following two APIs are for Into work, actually, APIs of Mutex |
| 261 | should allow plugins to manually increase or decrease the refcount |
no test coverage detected