43 #ifdef CHECK_MEMORY_LEAKS
45 #endif // CHECK_MEMORY_LEAKS
51 pthread_mutexattr_t attr;
52 pthread_mutexattr_init(&attr);
53 status = pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
54 FXASSERT(status == 0);
56 status = pthread_mutex_init((pthread_mutex_t*)
mutexHandle, &attr);
57 FXASSERT(status == 0);
58 pthread_mutexattr_destroy(&attr);
71 fxerror(
"MFXMutex: mutex still locked\n");
74 pthread_mutex_destroy((pthread_mutex_t*)
mutexHandle);
96 pthread_mutex_unlock((pthread_mutex_t*)
mutexHandle);
FXThreadMutex mutexHandle
void unlock()
release mutex lock
MFXMutex()
create me a mutex :-)