wut
v1.7.0
Wii U Toolchain
include
coreinit
threadqueue.h
Go to the documentation of this file.
1
#pragma once
2
#include <
wut.h
>
3
10
#ifdef __cplusplus
11
extern
"C"
{
12
#endif
13
14
typedef
struct
OSThread
OSThread
;
15
16
typedef
struct
OSThreadLink
OSThreadLink
;
17
typedef
struct
OSThreadQueue
OSThreadQueue
;
18
typedef
struct
OSThreadSimpleQueue
OSThreadSimpleQueue
;
19
20
struct
OSThreadLink
21
{
22
OSThread
*
next
;
23
OSThread
*
prev
;
24
};
25
WUT_CHECK_OFFSET(
OSThreadLink
, 0x00, next);
26
WUT_CHECK_OFFSET(
OSThreadLink
, 0x04, prev);
27
WUT_CHECK_SIZE(
OSThreadLink
, 0x8);
28
29
struct
OSThreadQueue
30
{
31
OSThread
*
head
;
32
OSThread
*
tail
;
33
void
*
parent
;
34
WUT_UNKNOWN_BYTES(4);
35
};
36
WUT_CHECK_OFFSET(
OSThreadQueue
, 0x00, head);
37
WUT_CHECK_OFFSET(
OSThreadQueue
, 0x04, tail);
38
WUT_CHECK_OFFSET(
OSThreadQueue
, 0x08, parent);
39
WUT_CHECK_SIZE(
OSThreadQueue
, 0x10);
40
41
struct
OSThreadSimpleQueue
42
{
43
OSThread
*
head
;
44
OSThread
*
tail
;
45
};
46
WUT_CHECK_OFFSET(
OSThreadSimpleQueue
, 0x00, head);
47
WUT_CHECK_OFFSET(
OSThreadSimpleQueue
, 0x04, tail);
48
WUT_CHECK_SIZE(
OSThreadSimpleQueue
, 0x08);
49
50
void
51
OSInitThreadQueue
(
OSThreadQueue
*queue);
52
53
void
54
OSInitThreadQueueEx
(
OSThreadQueue
*queue,
55
void
*parent);
56
57
#ifdef __cplusplus
58
}
59
#endif
60
OSThread
Definition:
thread.h:181
OSThreadLink::next
OSThread * next
Definition:
threadqueue.h:22
OSThreadQueue::head
OSThread * head
Definition:
threadqueue.h:31
OSThreadQueue::parent
void * parent
Definition:
threadqueue.h:33
OSThreadLink::prev
OSThread * prev
Definition:
threadqueue.h:23
OSThreadQueue::tail
OSThread * tail
Definition:
threadqueue.h:32
OSInitThreadQueueEx
void OSInitThreadQueueEx(OSThreadQueue *queue, void *parent)
OSInitThreadQueue
void OSInitThreadQueue(OSThreadQueue *queue)
OSThreadLink
Definition:
threadqueue.h:21
OSThreadQueue
Definition:
threadqueue.h:30
OSThreadSimpleQueue
Definition:
threadqueue.h:42
wut.h
Generated by
1.9.1