mirror of
https://github.com/wiiu-env/wut.git
synced 2024-12-13 19:21:51 +01:00
2e776838ff
So we don't have to extern C and pragma pack in every header file.
52 lines
988 B
C
52 lines
988 B
C
#pragma once
|
|
#include <wut.h>
|
|
#include "time.h"
|
|
|
|
WUT_LIB_HEADER_START
|
|
|
|
typedef struct OSSpinLock OSSpinLock;
|
|
|
|
struct OSSpinLock
|
|
{
|
|
uint32_t owner;
|
|
UNKNOWN(0x4);
|
|
uint32_t recursion;
|
|
UNKNOWN(0x4);
|
|
};
|
|
CHECK_OFFSET(OSSpinLock, 0x0, owner);
|
|
CHECK_OFFSET(OSSpinLock, 0x8, recursion);
|
|
CHECK_SIZE(OSSpinLock, 0x10);
|
|
|
|
#pragma pack(pop)
|
|
|
|
void
|
|
OSInitSpinLock(OSSpinLock *spinlock);
|
|
|
|
BOOL
|
|
OSAcquireSpinLock(OSSpinLock *spinlock);
|
|
|
|
BOOL
|
|
OSTryAcquireSpinLock(OSSpinLock *spinlock);
|
|
|
|
BOOL
|
|
OSTryAcquireSpinLockWithTimeout(OSSpinLock *spinlock,
|
|
OSTime timeout);
|
|
|
|
BOOL
|
|
OSReleaseSpinLock(OSSpinLock *spinlock);
|
|
|
|
BOOL
|
|
OSUninterruptibleSpinLock_Acquire(OSSpinLock *spinlock);
|
|
|
|
BOOL
|
|
OSUninterruptibleSpinLock_TryAcquire(OSSpinLock *spinlock);
|
|
|
|
BOOL
|
|
OSUninterruptibleSpinLock_TryAcquireWithTimeout(OSSpinLock *spinlock,
|
|
OSTime timeout);
|
|
|
|
BOOL
|
|
OSUninterruptibleSpinLock_Release(OSSpinLock *spinlock);
|
|
|
|
WUT_LIB_HEADER_END
|