wut v1.8.0
Wii U Toolchain
Loading...
Searching...
No Matches
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.
 
void OSInitSemaphoreEx (OSSemaphore *semaphore, int32_t count, const char *name)
 Initialise semaphore object with count and name.
 
int32_t OSGetSemaphoreCount (OSSemaphore *semaphore)
 Get the current semaphore count.
 
int32_t OSSignalSemaphore (OSSemaphore *semaphore)
 Increase the semaphore value.
 
int32_t OSWaitSemaphore (OSSemaphore *semaphore)
 Decrease the semaphore value.
 
int32_t OSTryWaitSemaphore (OSSemaphore *semaphore)
 Try to decrease the semaphore value.