MCPcopy Create free account
hub / github.com/apache/trafficserver / TSMutexDestroy

Function TSMutexDestroy

src/api/InkIOCoreAPI.cc:248–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246}
247
248void
249TSMutexDestroy(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

Callers 10

delete_purge_instanceFunction · 0.85
~BgFetchStatesMethod · 0.85
~BgFetchStateMethod · 0.85
~BgFetchStateMethod · 0.85
~SslLRUListMethod · 0.85
~LRUPolicyMethod · 0.85
~BgFetchStateMethod · 0.85
~ConfigInfoMethod · 0.85
ts_lua_destroy_vmFunction · 0.85
ts_lua_destroy_ctx_statsFunction · 0.85

Calls 3

sdk_sanity_check_mutexFunction · 0.85
refcountMethod · 0.80
freeMethod · 0.45

Tested by

no test coverage detected