WUT
0.1
Wii U Toolchain
Main Page
Modules
Data Structures
Files
File List
Globals
include
coreinit
fastmutex.h
Go to the documentation of this file.
1
#pragma once
2
#include <
wut.h
>
3
#include "
threadqueue.h
"
4
11
#ifdef __cplusplus
12
extern
"C"
{
13
#endif
14
15
typedef
struct
OSFastMutex
OSFastMutex
;
16
typedef
struct
OSFastMutexLink
OSFastMutexLink
;
17
typedef
struct
OSFastCondition
OSFastCondition
;
18
19
struct
OSFastMutexLink
20
{
21
OSFastMutex
*
next
;
22
OSFastMutex
*
prev
;
23
};
24
CHECK_OFFSET(
OSFastMutexLink
, 0x00, next);
25
CHECK_OFFSET(
OSFastMutexLink
, 0x04, prev);
26
CHECK_SIZE(
OSFastMutexLink
, 0x08);
27
28
#define OS_FAST_MUTEX_TAG 0x664D7458u
29
30
struct
OSFastMutex
31
{
32
uint32_t
tag
;
33
const
char
*
name
;
34
UNKNOWN(4);
35
OSThreadSimpleQueue
queue
;
36
OSFastMutexLink
link
;
37
UNKNOWN(16);
38
};
39
CHECK_OFFSET(
OSFastMutex
, 0x00, tag);
40
CHECK_OFFSET(
OSFastMutex
, 0x04, name);
41
CHECK_OFFSET(
OSFastMutex
, 0x0c, queue);
42
CHECK_OFFSET(
OSFastMutex
, 0x14, link);
43
CHECK_SIZE(
OSFastMutex
, 0x2c);
44
45
void
46
OSFastMutex_Init
(
OSFastMutex
*mutex,
const
char
*name);
47
48
void
49
OSFastMutex_Lock
(
OSFastMutex
*mutex);
50
51
void
52
OSFastMutex_Unlock
(
OSFastMutex
*mutex);
53
54
BOOL
55
OSFastMutex_TryLock
(
OSFastMutex
*mutex);
56
57
#ifdef __cplusplus
58
}
59
#endif
60
OSFastMutex_Init
void OSFastMutex_Init(OSFastMutex *mutex, const char *name)
OSFastMutex
Definition:
fastmutex.h:30
OSFastMutexLink::next
OSFastMutex * next
Definition:
fastmutex.h:21
OSFastMutex::tag
uint32_t tag
Definition:
fastmutex.h:32
OSFastMutex_TryLock
BOOL OSFastMutex_TryLock(OSFastMutex *mutex)
threadqueue.h
OSFastCondition
Definition:
fastcondition.h:23
OSFastMutex_Unlock
void OSFastMutex_Unlock(OSFastMutex *mutex)
OSFastMutexLink::prev
OSFastMutex * prev
Definition:
fastmutex.h:22
OSFastMutexLink
Definition:
fastmutex.h:19
OSFastMutex::name
const char * name
Definition:
fastmutex.h:33
wut.h
OSFastMutex::queue
OSThreadSimpleQueue queue
Definition:
fastmutex.h:35
BOOL
int BOOL
Definition:
wut_types.h:4
OSFastMutex_Lock
void OSFastMutex_Lock(OSFastMutex *mutex)
OSFastMutex::link
OSFastMutexLink link
Definition:
fastmutex.h:36
OSThreadSimpleQueue
Definition:
threadqueue.h:41
Generated by
1.8.10