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

Function TSMutexCreate

src/api/InkIOCoreAPI.cc:237–246  ·  view source on GitHub ↗

/////////////////////////////////////////////////////////////// Mutexes: For TSMutexCreate and TSMutexDestroy, the refcount of the ProxyMutex object is not incremented or decremented. If the resulting ProxyMutex is passed to a INKContInternal, it's mutex smart pointer will take ownership of the ProxyMutex and delete it when the last reference is removed. TSMutexDestroy should not be called in

Source from the content-addressed store, hash-verified

235//
236////////////////////////////////////////////////////////////////////
237TSMutex
238TSMutexCreate()
239{
240 ProxyMutex *mutexp = new_ProxyMutex();
241
242 // TODO: Remove this when allocations can never fail.
243 sdk_assert(sdk_sanity_check_mutex((TSMutex)mutexp) == TS_SUCCESS);
244
245 return (TSMutex)mutexp;
246}
247
248void
249TSMutexDestroy(TSMutex m)

Callers 15

InterceptTxnHookFunction · 0.85
accept_handlerFunction · 0.85
protocol_initFunction · 0.85
TSPluginInitFunction · 0.85
global_pluginFunction · 0.85
init_queueFunction · 0.85
TSPluginInitFunction · 0.85
PassthruSessionMethod · 0.85
TSPluginInitFunction · 0.85
TSPluginInitFunction · 0.85
TSPluginInitFunction · 0.85
handle_txn_startFunction · 0.85

Calls 2

new_ProxyMutexFunction · 0.85
sdk_sanity_check_mutexFunction · 0.85