RetroArch
semaphore.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 #define OS_SEMAPHORE_TAG 0x73506852u
10 typedef struct
11 {
13  const char *name;
18 
19 void OSInitSemaphore(OSSemaphore *semaphore, int32_t count);
20 void OSInitSemaphoreEx(OSSemaphore *semaphore, int32_t count, const char *name);
25 
26 #ifdef __cplusplus
27 }
28 #endif
uint32_t __unknown
Definition: semaphore.h:14
GLuint const GLchar * name
Definition: glext.h:6671
int32_t OSWaitSemaphore(OSSemaphore *semaphore)
Definition: semaphore.h:10
int32_t OSSignalSemaphore(OSSemaphore *semaphore)
Definition: thread.h:121
GLuint GLuint GLsizei count
Definition: glext.h:6292
int32_t count
Definition: semaphore.h:15
void OSInitSemaphoreEx(OSSemaphore *semaphore, int32_t count, const char *name)
const char * name
Definition: semaphore.h:13
void OSInitSemaphore(OSSemaphore *semaphore, int32_t count)
OSThreadQueue queue
Definition: semaphore.h:16
signed int int32_t
Definition: stdint.h:123
int32_t OSGetSemaphoreCount(OSSemaphore *semaphore)
uint32_t tag
Definition: semaphore.h:12
int32_t OSTryWaitSemaphore(OSSemaphore *semaphore)
unsigned int uint32_t
Definition: stdint.h:126