wut  v1.7.0
Wii U Toolchain
Data Structures | Macros | Typedefs | Functions
semaphore.h File Reference
#include <wut.h>
#include "threadqueue.h"
Include dependency graph for semaphore.h:

Go to the source code of this file.

Data Structures

struct  OSSemaphore
 

Macros

#define OS_SEMAPHORE_TAG   0x73506852u
 

Typedefs

typedef struct OSSemaphore OSSemaphore
 

Functions

void OSInitSemaphore (OSSemaphore *semaphore, int32_t count)
 Initialise semaphore object with count. More...
 
void OSInitSemaphoreEx (OSSemaphore *semaphore, int32_t count, const char *name)
 Initialise semaphore object with count and name. More...
 
int32_t OSGetSemaphoreCount (OSSemaphore *semaphore)
 Get the current semaphore count. More...
 
int32_t OSSignalSemaphore (OSSemaphore *semaphore)
 Increase the semaphore value. More...
 
int32_t OSWaitSemaphore (OSSemaphore *semaphore)
 Decrease the semaphore value. More...
 
int32_t OSTryWaitSemaphore (OSSemaphore *semaphore)
 Try to decrease the semaphore value. More...