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.*/
| 262 | of the mutex pointer, plugins may want more control of the creation |
| 263 | and destroy of the mutex.*/ |
| 264 | TSMutex |
| 265 | TSMutexCreateInternal() |
| 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 | |
| 276 | int |
| 277 | TSMutexCheck(TSMutex mutex) |
nothing calls this directly
no test coverage detected