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

Function TSMutexCreateInternal

src/api/InkIOCoreAPI.cc:264–274  ·  view source on GitHub ↗

The following two APIs are for Into work, actually, APIs of Mutex should allow plugins to manually increase or decrease the refcount of the mutex pointer, plugins may want more control of the creation and destroy of the mutex.*/

Source from the content-addressed store, hash-verified

262 of the mutex pointer, plugins may want more control of the creation
263 and destroy of the mutex.*/
264TSMutex
265TSMutexCreateInternal()
266{
267 ProxyMutex *new_mutex = new_ProxyMutex();
268
269 // TODO: Remove this when allocations can never fail.
270 sdk_assert(sdk_sanity_check_mutex((TSMutex)new_mutex) == TS_SUCCESS);
271
272 new_mutex->refcount_inc();
273 return reinterpret_cast<TSMutex>(new_mutex);
274}
275
276int
277TSMutexCheck(TSMutex mutex)

Callers

nothing calls this directly

Calls 3

new_ProxyMutexFunction · 0.85
sdk_sanity_check_mutexFunction · 0.85
refcount_incMethod · 0.80

Tested by

no test coverage detected