/////////////////////////////////////////////////////////////// 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
| 235 | // |
| 236 | //////////////////////////////////////////////////////////////////// |
| 237 | TSMutex |
| 238 | TSMutexCreate() |
| 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 | |
| 248 | void |
| 249 | TSMutexDestroy(TSMutex m) |