wut
1.0.0-beta9
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
*
prev
;
23
OSThread
*
next
;
24
};
25
WUT_CHECK_OFFSET(
OSThreadLink
, 0x00, prev);
26
WUT_CHECK_OFFSET(
OSThreadLink
, 0x04, next);
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
OSThreadLink
Definition:
threadqueue.h:20
OSThread
struct OSThread OSThread
Definition:
mutex.h:19
OSThreadLink::prev
OSThread * prev
Definition:
threadqueue.h:22
OSThreadSimpleQueue
Definition:
threadqueue.h:41
wut.h
OSThreadQueue::tail
OSThread * tail
Definition:
threadqueue.h:32
OSThreadLink::next
OSThread * next
Definition:
threadqueue.h:23
OSThreadQueue::head
OSThread * head
Definition:
threadqueue.h:31
OSThreadQueue::parent
void * parent
Definition:
threadqueue.h:33
OSInitThreadQueueEx
void OSInitThreadQueueEx(OSThreadQueue *queue, void *parent)
OSThreadQueue
Definition:
threadqueue.h:29
OSInitThreadQueue
void OSInitThreadQueue(OSThreadQueue *queue)
Generated by
1.8.17