mirror of
https://github.com/wiiu-env/wut.git
synced 2024-12-13 21:51:53 +01:00
2e776838ff
So we don't have to extern C and pragma pack in every header file.
36 lines
724 B
C
36 lines
724 B
C
#pragma once
|
|
#include <wut.h>
|
|
#include "threadqueue.h"
|
|
|
|
WUT_LIB_HEADER_START
|
|
|
|
typedef struct OSFastCondition OSFastCondition;
|
|
typedef struct OSFastMutex OSFastMutex;
|
|
|
|
#define OS_FAST_CONDITION_TAG 0x664E6456u
|
|
|
|
struct OSFastCondition
|
|
{
|
|
uint32_t tag;
|
|
const char *name;
|
|
UNKNOWN(4);
|
|
OSThreadQueue queue;
|
|
};
|
|
CHECK_OFFSET(OSFastCondition, 0x00, tag);
|
|
CHECK_OFFSET(OSFastCondition, 0x04, name);
|
|
CHECK_OFFSET(OSFastCondition, 0x0c, queue);
|
|
CHECK_SIZE(OSFastCondition, 0x1c);
|
|
|
|
void
|
|
OSFastCond_Init(OSFastCondition *condition,
|
|
const char *name);
|
|
|
|
void
|
|
OSFastCond_Wait(OSFastCondition *condition,
|
|
OSFastMutex *mutex);
|
|
|
|
void
|
|
OSFastCond_Signal(OSFastCondition *condition);
|
|
|
|
WUT_LIB_HEADER_END
|