* xmlCleanupMutex: * @mutex: the simple mutex * * Reclaim resources associated with a mutex. */
| 164 | * Reclaim resources associated with a mutex. |
| 165 | */ |
| 166 | void |
| 167 | xmlCleanupMutex(xmlMutexPtr mutex) |
| 168 | { |
| 169 | #ifdef HAVE_POSIX_THREADS |
| 170 | if (XML_IS_NEVER_THREADED() == 0) |
| 171 | pthread_mutex_destroy(&mutex->lock); |
| 172 | #elif defined HAVE_WIN32_THREADS |
| 173 | DeleteCriticalSection(&mutex->cs); |
| 174 | #else |
| 175 | (void) mutex; |
| 176 | #endif |
| 177 | } |
| 178 | |
| 179 | /** |
| 180 | * xmlFreeMutex: |
no outgoing calls
no test coverage detected