mirror of
https://github.com/devkitPro/wut.git
synced 2026-08-11 03:56:24 -05:00
Add a bunch of coreinit functions.
This commit is contained in:
53
include/coreinit/threadqueue.h
Normal file
53
include/coreinit/threadqueue.h
Normal file
@@ -0,0 +1,53 @@
|
||||
#pragma once
|
||||
#include <wut.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
struct OSThread;
|
||||
|
||||
typedef struct OSThreadLink OSThreadLink;
|
||||
typedef struct OSThreadQueue OSThreadQueue;
|
||||
typedef struct OSThreadSimpleQueue OSThreadSimpleQueue;
|
||||
|
||||
struct OSThreadLink
|
||||
{
|
||||
OSThread *prev;
|
||||
OSThread *next;
|
||||
};
|
||||
CHECK_OFFSET(OSThreadLink, 0x00, prev);
|
||||
CHECK_OFFSET(OSThreadLink, 0x04, next);
|
||||
CHECK_SIZE(OSThreadLink, 0x8);
|
||||
|
||||
struct OSThreadQueue
|
||||
{
|
||||
OSThread *head;
|
||||
OSThread *tail;
|
||||
void *parent;
|
||||
UNKNOWN(4);
|
||||
};
|
||||
CHECK_OFFSET(OSThreadQueue, 0x00, head);
|
||||
CHECK_OFFSET(OSThreadQueue, 0x04, tail);
|
||||
CHECK_OFFSET(OSThreadQueue, 0x08, parent);
|
||||
CHECK_SIZE(OSThreadQueue, 0x10);
|
||||
|
||||
struct OSThreadSimpleQueue
|
||||
{
|
||||
OSThread *head;
|
||||
OSThread *tail;
|
||||
};
|
||||
CHECK_OFFSET(OSThreadSimpleQueue, 0x00, head);
|
||||
CHECK_OFFSET(OSThreadSimpleQueue, 0x04, tail);
|
||||
CHECK_SIZE(OSThreadSimpleQueue, 0x08);
|
||||
|
||||
void
|
||||
OSInitThreadQueue(OSThreadQueue *queue);
|
||||
|
||||
void
|
||||
OSInitThreadQueueEx(OSThreadQueue *queue,
|
||||
void *parent);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user