RetroArch
Classes | Macros | Typedefs | Functions
lwp_sema.h File Reference
#include <gctypes.h>
#include <lwp_threadq.h>
Include dependency graph for lwp_sema.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _lwpsemattr
 
struct  _lwpsema
 

Macros

#define LWP_SEMA_MODEFIFO   0
 
#define LWP_SEMA_MODEPRIORITY   1
 
#define LWP_SEMA_SUCCESSFUL   0
 
#define LWP_SEMA_UNSATISFIED_NOWAIT   1
 
#define LWP_SEMA_DELETED   2
 
#define LWP_SEMA_TIMEOUT   3
 
#define LWP_SEMA_MAXCNT_EXCEEDED   4
 

Typedefs

typedef struct _lwpsemattr lwp_semattr
 
typedef struct _lwpsema lwp_sema
 

Functions

void __lwp_sema_initialize (lwp_sema *sema, lwp_semattr *attrs, u32 init_count)
 
u32 __lwp_sema_surrender (lwp_sema *sema, u32 id)
 
u32 __lwp_sema_seize (lwp_sema *sema, u32 id, u32 wait, u64 timeout)
 
void __lwp_sema_flush (lwp_sema *sema, u32 status)
 

Macro Definition Documentation

◆ LWP_SEMA_DELETED

#define LWP_SEMA_DELETED   2

◆ LWP_SEMA_MAXCNT_EXCEEDED

#define LWP_SEMA_MAXCNT_EXCEEDED   4

◆ LWP_SEMA_MODEFIFO

#define LWP_SEMA_MODEFIFO   0

◆ LWP_SEMA_MODEPRIORITY

#define LWP_SEMA_MODEPRIORITY   1

◆ LWP_SEMA_SUCCESSFUL

#define LWP_SEMA_SUCCESSFUL   0

◆ LWP_SEMA_TIMEOUT

#define LWP_SEMA_TIMEOUT   3

◆ LWP_SEMA_UNSATISFIED_NOWAIT

#define LWP_SEMA_UNSATISFIED_NOWAIT   1

Typedef Documentation

◆ lwp_sema

typedef struct _lwpsema lwp_sema

◆ lwp_semattr

typedef struct _lwpsemattr lwp_semattr

Function Documentation

◆ __lwp_sema_flush()

void __lwp_sema_flush ( lwp_sema sema,
u32  status 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __lwp_sema_initialize()

void __lwp_sema_initialize ( lwp_sema sema,
lwp_semattr attrs,
u32  init_count 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __lwp_sema_seize()

u32 __lwp_sema_seize ( lwp_sema sema,
u32  id,
u32  wait,
u64  timeout 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __lwp_sema_surrender()

u32 __lwp_sema_surrender ( lwp_sema sema,
u32  id 
)
Here is the call graph for this function:
Here is the caller graph for this function: