#include <types.h>
#include <irx.h>
Go to the source code of this file.
|
#define | SA_THFIFO 0x000 |
|
#define | SA_THPRI 0x001 |
|
#define | SA_IHTHPRI 0x100 |
|
#define | IOP_MUTEX_LOCKED 0 |
|
#define | IOP_MUTEX_UNLOCKED 1 |
|
#define | thsemap_IMPORTS_start DECLARE_IMPORT_TABLE(thsemap, 1, 2) |
|
#define | thsemap_IMPORTS_end END_IMPORT_TABLE |
|
#define | I_CreateSema DECLARE_IMPORT(4, CreateSema) |
|
#define | I_DeleteSema DECLARE_IMPORT(5, DeleteSema) |
|
#define | I_SignalSema DECLARE_IMPORT(6, SignalSema) |
|
#define | I_iSignalSema DECLARE_IMPORT(7, iSignalSema) |
|
#define | I_WaitSema DECLARE_IMPORT(8, WaitSema); |
|
#define | I_PollSema DECLARE_IMPORT(9, PollSema); |
|
#define | I_ReferSemaStatus DECLARE_IMPORT(11, ReferSemaStatus) |
|
#define | I_iReferSemaStatus DECLARE_IMPORT(12, iReferSemaStatus) |
|
Kernel-based semaphores.
Definition in file thsemap.h.
◆ iop_sema_t
Definition at line 38 of file thsemap.h.
Data Fields |
u32 |
attr |
|
u32 |
option |
|
int |
initial |
|
int |
max |
|
◆ iop_sema_info_t
Definition at line 46 of file thsemap.h.
Data Fields |
u32 |
attr |
|
u32 |
option |
|
int |
initial |
|
int |
max |
|
int |
current |
|
int |
numWaitThreads |
|
int |
reserved[2] |
|
◆ SA_THFIFO
◆ SA_THPRI
◆ SA_IHTHPRI
◆ IOP_MUTEX_LOCKED
#define IOP_MUTEX_LOCKED 0 |
◆ IOP_MUTEX_UNLOCKED
#define IOP_MUTEX_UNLOCKED 1 |
◆ thsemap_IMPORTS_start
#define thsemap_IMPORTS_start DECLARE_IMPORT_TABLE(thsemap, 1, 2) |
◆ thsemap_IMPORTS_end
#define thsemap_IMPORTS_end END_IMPORT_TABLE |
◆ I_CreateSema
#define I_CreateSema DECLARE_IMPORT(4, CreateSema) |
◆ I_DeleteSema
#define I_DeleteSema DECLARE_IMPORT(5, DeleteSema) |
◆ I_SignalSema
#define I_SignalSema DECLARE_IMPORT(6, SignalSema) |
◆ I_iSignalSema
#define I_iSignalSema DECLARE_IMPORT(7, iSignalSema) |
◆ I_WaitSema
#define I_WaitSema DECLARE_IMPORT(8, WaitSema); |
◆ I_PollSema
#define I_PollSema DECLARE_IMPORT(9, PollSema); |
◆ I_ReferSemaStatus
#define I_ReferSemaStatus DECLARE_IMPORT(11, ReferSemaStatus) |
◆ I_iReferSemaStatus
#define I_iReferSemaStatus DECLARE_IMPORT(12, iReferSemaStatus) |
◆ CreateSema()
◆ DeleteSema()
int DeleteSema |
( |
int |
semid | ) |
|
◆ SignalSema()
int SignalSema |
( |
int |
semid | ) |
|
◆ iSignalSema()
int iSignalSema |
( |
int |
semid | ) |
|
◆ WaitSema()
int WaitSema |
( |
int |
semid | ) |
|
◆ PollSema()
int PollSema |
( |
int |
semid | ) |
|
◆ ReferSemaStatus()
◆ iReferSemaStatus()
◆ CreateMutex()
static int CreateMutex |
( |
int |
state | ) |
|
|
inlinestatic |