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

Function sdk_sanity_check_mutex

src/api/InkIOCoreAPI.cc:42–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40#endif
41
42TSReturnCode
43sdk_sanity_check_mutex(TSMutex mutex)
44{
45 if (mutex == nullptr) {
46 return TS_ERROR;
47 }
48
49 ProxyMutex *mutexp = reinterpret_cast<ProxyMutex *>(mutex);
50
51 if (mutexp->refcount() < 0) {
52 return TS_ERROR;
53 }
54 if (mutexp->nthread_holding < 0) {
55 return TS_ERROR;
56 }
57
58 return TS_SUCCESS;
59}
60
61TSReturnCode
62sdk_sanity_check_hostlookup_structure(TSHostLookupResult data)

Callers 8

TSContCreateFunction · 0.85
TSVConnCreateFunction · 0.85
TSMutexCreateFunction · 0.85
TSMutexDestroyFunction · 0.85
TSMutexCreateInternalFunction · 0.85
TSMutexLockFunction · 0.85
TSMutexLockTryFunction · 0.85
TSMutexUnlockFunction · 0.85

Calls 1

refcountMethod · 0.80

Tested by

no test coverage detected