* xmlMutexUnlock: * @tok: the simple mutex * * xmlMutexUnlock() is used to unlock a libxml2 token. */
| 223 | * xmlMutexUnlock() is used to unlock a libxml2 token. |
| 224 | */ |
| 225 | void |
| 226 | xmlMutexUnlock(xmlMutexPtr tok) |
| 227 | { |
| 228 | if (tok == NULL) |
| 229 | return; |
| 230 | #ifdef HAVE_POSIX_THREADS |
| 231 | if (XML_IS_THREADED() != 0) |
| 232 | pthread_mutex_unlock(&tok->lock); |
| 233 | #elif defined HAVE_WIN32_THREADS |
| 234 | LeaveCriticalSection(&tok->cs); |
| 235 | #endif |
| 236 | } |
| 237 | |
| 238 | /** |
| 239 | * xmlNewRMutex: |
no outgoing calls
no test coverage detected