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

Function xmlInitMutex

ThirdParty/libxml2/vtklibxml2/threads.c:128–139  ·  view source on GitHub ↗

* xmlInitMutex: * @mutex: the mutex * * Initialize a mutex. */

Source from the content-addressed store, hash-verified

126 * Initialize a mutex.
127 */
128void
129xmlInitMutex(xmlMutexPtr mutex)
130{
131#ifdef HAVE_POSIX_THREADS
132 if (XML_IS_NEVER_THREADED() == 0)
133 pthread_mutex_init(&mutex->lock, NULL);
134#elif defined HAVE_WIN32_THREADS
135 InitializeCriticalSection(&mutex->cs);
136#else
137 (void) mutex;
138#endif
139}
140
141/**
142 * xmlNewMutex:

Callers 5

xmlInitDictInternalFunction · 0.85
xmlInitRandomFunction · 0.85
xmlInitMemoryInternalFunction · 0.85
xmlNewMutexFunction · 0.85
xmlInitGlobalsInternalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected