SSBM Decomp
Toggle main menu visibility
Loading...
Searching...
No Matches
OSMutex.h
Go to the documentation of this file.
1
#ifndef _DOLPHIN_OSMUTEX_H_
2
#define _DOLPHIN_OSMUTEX_H_
3
4
#include <
dolphin/os/OSThread.h
>
5
6
#ifdef __cplusplus
7
extern
"C"
{
8
#endif
9
10
typedef
struct
OSMutex
11
{
12
/*0x00*/
OSThreadQueue
queue
;
13
/*0x08*/
OSThread
*
thread
;
14
/*0x0C*/
s32
count
;
15
/*0x10*/
OSMutexLink
link
;
16
}
OSMutex
;
17
18
struct
OSCond
19
{
20
OSThreadQueue
queue
;
21
};
22
23
void
OSInitMutex
(
struct
OSMutex
* mutex);
24
void
OSLockMutex
(
struct
OSMutex
* mutex);
25
void
OSUnlockMutex
(
struct
OSMutex
* mutex);
26
BOOL
OSTryLockMutex
(
struct
OSMutex
* mutex);
27
void
OSInitCond
(
struct
OSCond
* cond);
28
void
OSWaitCond
(
struct
OSCond
* cond,
struct
OSMutex
* mutex);
29
void
OSSignalCond
(
struct
OSCond
* cond);
30
31
#ifdef __cplusplus
32
}
33
#endif
34
35
#endif
OSSignalCond
void OSSignalCond(struct OSCond *cond)
OSTryLockMutex
BOOL OSTryLockMutex(struct OSMutex *mutex)
OSInitCond
void OSInitCond(struct OSCond *cond)
OSInitMutex
void OSInitMutex(struct OSMutex *mutex)
OSLockMutex
void OSLockMutex(struct OSMutex *mutex)
OSWaitCond
void OSWaitCond(struct OSCond *cond, struct OSMutex *mutex)
OSUnlockMutex
void OSUnlockMutex(struct OSMutex *mutex)
OSThread.h
BOOL
int BOOL
Definition
types.h:20
s32
signed long s32
Definition
types.h:8
OSCond
Definition
OSMutex.h:19
OSCond::queue
OSThreadQueue queue
Definition
OSMutex.h:20
OSMutexLink
Definition
OSThread.h:33
OSMutex
Definition
OSMutex.h:11
OSMutex::thread
OSThread * thread
Definition
OSMutex.h:13
OSMutex::link
OSMutexLink link
Definition
OSMutex.h:15
OSMutex::queue
OSThreadQueue queue
Definition
OSMutex.h:12
OSMutex::count
s32 count
Definition
OSMutex.h:14
OSThreadQueue
Definition
OSThread.h:15
OSThread
Definition
OSThread.h:39
extern
dolphin
include
dolphin
os
OSMutex.h
Generated by
1.17.0