20 return GetCurrentThreadId();
49 while ((istate = InterlockedExchange(&mp->
initstate, 2)) == 2)
52 InitializeCriticalSection(&mp->
csection);
int pthread_mutex_unlock(pthread_mutex_t *mp)
int pthread_mutex_lock(pthread_mutex_t *mp)
void pthread_setspecific(pthread_key_t key, void *val)
void * pthread_getspecific(pthread_key_t key)
int pthread_mutex_init(pthread_mutex_t *mp, void *attr)
CRITICAL_SECTION csection