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