7 #if defined(XMLRPC_THREADS)
12 # define WIN32_LEAN_AND_MEAN
18 using namespace XmlRpc;
29 ::pthread_mutex_destroy((pthread_mutex_t*)
_pMutex);
41 _pMutex = ::CreateMutex(0, TRUE, 0);
43 ::WaitForSingleObject(
_pMutex, INFINITE);
48 ::pthread_mutex_init((pthread_mutex_t*)
_pMutex, 0);
50 ::pthread_mutex_lock((pthread_mutex_t*)
_pMutex);
61 ::pthread_mutex_unlock((pthread_mutex_t*)
_pMutex);
65 #endif // XMLRPC_THREADS