Go to the documentation of this file.
32 #include <scebase_common.h>
46 ScePthreadMutexattr mutex_attr;
47 AKVERIFY(!scePthreadMutexattrInit( &mutex_attr ));
48 AKVERIFY(!scePthreadMutexattrSettype( &mutex_attr, SCE_PTHREAD_MUTEX_RECURSIVE ));
49 AKVERIFY(!scePthreadMutexattrSetprotocol(&mutex_attr, SCE_PTHREAD_PRIO_INHERIT));
50 AKVERIFY(!scePthreadMutexInit( &m_mutex, &mutex_attr,
NULL));
51 AKVERIFY(!scePthreadMutexattrDestroy( &mutex_attr ));
57 AKVERIFY(!scePthreadMutexDestroy( &m_mutex ));
63 if( scePthreadMutexLock(&m_mutex) == SCE_OK )
73 if( scePthreadMutexUnlock(&m_mutex) == SCE_OK )
81 ScePthreadMutex m_mutex;
@ AK_Fail
The operation failed.
AKRESULT
Standard function call result.
@ AK_Success
The operation was successful.
AKRESULT Unlock(void)
Unlock.
AKRESULT Lock(void)
Lock.
Tell us about your project. We're here to help.
Register your project and we'll help you get started with no strings attached!
Get started with Wwise