| 40 | #endif |
| 41 | |
| 42 | TSReturnCode |
| 43 | sdk_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 | |
| 61 | TSReturnCode |
| 62 | sdk_sanity_check_hostlookup_structure(TSHostLookupResult data) |
no test coverage detected