Thread subsystem III. More...
#include <gctypes.h>Defines | |
| #define | LWP_MUTEX_NULL 0xffffffff |
Typedefs | |
| typedef u32 | mutex_t |
| typedef for the mutex handle | |
Functions | |
| s32 | LWP_MutexDestroy (mutex_t mutex) |
| Close mutex lock, release all threads and handles locked on this mutex. | |
| s32 | LWP_MutexInit (mutex_t *mutex, bool use_recursive) |
| Initializes a mutex lock. | |
| s32 | LWP_MutexLock (mutex_t mutex) |
| Enter the mutex lock. | |
| s32 | LWP_MutexTryLock (mutex_t mutex) |
| Try to enter the mutex lock. | |
| s32 | LWP_MutexUnlock (mutex_t mutex) |
| Release the mutex lock and let other threads process further on this mutex. | |
Thread subsystem III.
Close mutex lock, release all threads and handles locked on this mutex.
| [in] | mutex | handle to the mutex_t structure. |
Initializes a mutex lock.
| [out] | mutex | pointer to a mutex_t handle. |
| [in] | use_recursive | whether to allow the thread, whithin the same context, to enter multiple times the lock or not. |
Enter the mutex lock.
| [in] | mutex | handle to the mutext_t structure. |
Try to enter the mutex lock.
| [in] | mutex | handle to the mutex_t structure. |
1.6.3