RetroArch
mutex.h
Go to the documentation of this file.
1 #pragma once
2 #include <wiiu/types.h>
3 #include "thread.h"
4 
5 #ifdef __cplusplus
6 extern "C" {
7 #endif
8 
9 typedef struct OSMutex OSMutex;
10 
11 typedef struct
12 {
15 } OSMutexLink;
16 
17 #define OS_MUTEX_TAG 0x6D557458u
18 typedef struct OSMutex
19 {
21  const char *name;
27 } OSMutex;
28 
30 void OSInitMutexEx(OSMutex *mutex, const char *name);
34 
35 #ifdef __cplusplus
36 }
37 #endif
38 
GLuint const GLchar * name
Definition: glext.h:6671
uint32_t __unknown
Definition: mutex.h:22
Definition: mutex.h:11
uint32_t tag
Definition: mutex.h:20
static sys_sem mutex
Definition: memp.c:120
Definition: thread.h:121
OSMutex * next
Definition: mutex.h:13
BOOL OSTryLockMutex(OSMutex *mutex)
void OSUnlockMutex(OSMutex *mutex)
int32_t count
Definition: mutex.h:25
Definition: thread.h:137
void OSLockMutex(OSMutex *mutex)
OSMutexLink link
Definition: mutex.h:26
signed int int32_t
Definition: stdint.h:123
OSMutex * prev
Definition: mutex.h:14
unsigned int BOOL
Definition: gctypes.h:51
void OSInitMutexEx(OSMutex *mutex, const char *name)
struct OSMutex OSMutex
Definition: mutex.h:9
void OSInitMutex(OSMutex *mutex)
Definition: mutex.h:18
const char * name
Definition: mutex.h:21
OSThread * owner
Definition: mutex.h:24
unsigned int uint32_t
Definition: stdint.h:126
OSThreadQueue queue
Definition: mutex.h:23