MCPcopy Create free account
hub / github.com/Kitware/VTK / xmlCleanupMutex

Function xmlCleanupMutex

ThirdParty/libxml2/vtklibxml2/threads.c:166–177  ·  view source on GitHub ↗

* xmlCleanupMutex: * @mutex: the simple mutex * * Reclaim resources associated with a mutex. */

Source from the content-addressed store, hash-verified

164 * Reclaim resources associated with a mutex.
165 */
166void
167xmlCleanupMutex(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:

Callers 5

xmlCleanupDictInternalFunction · 0.85
xmlCleanupRandomFunction · 0.85
xmlCleanupMemoryInternalFunction · 0.85
xmlFreeMutexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected