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

Function xmlMutexUnlock

ThirdParty/libxml2/vtklibxml2/threads.c:225–236  ·  view source on GitHub ↗

* xmlMutexUnlock: * @tok: the simple mutex * * xmlMutexUnlock() is used to unlock a libxml2 token. */

Source from the content-addressed store, hash-verified

223 * xmlMutexUnlock() is used to unlock a libxml2 token.
224 */
225void
226xmlMutexUnlock(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:

Callers 15

xmlDictReferenceFunction · 0.85
xmlDictFreeFunction · 0.85
xmlGlobalRandomFunction · 0.85
xmlMemMallocFunction · 0.85
xmlMemReallocFunction · 0.85
xmlMemFreeFunction · 0.85
xmlMemoryStrdupFunction · 0.85
xmlMemBlocksFunction · 0.85
xmlInitGlobalStateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected