wut  v1.7.0
Wii U Toolchain
spinlock.h
Go to the documentation of this file.
1 #pragma once
2 #include <wut.h>
3 #include "time.h"
4 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
15 typedef struct OSSpinLock OSSpinLock;
16 
17 struct WUT_ALIGNAS(16) OSSpinLock
18 {
19  uint32_t owner;
20  WUT_UNKNOWN_BYTES(0x4);
21  uint32_t recursion;
22  WUT_UNKNOWN_BYTES(0x4);
23 };
24 WUT_CHECK_OFFSET(OSSpinLock, 0x0, owner);
25 WUT_CHECK_OFFSET(OSSpinLock, 0x8, recursion);
26 WUT_CHECK_SIZE(OSSpinLock, 0x10);
27 
28 void
30 
31 BOOL
33 
34 BOOL
36 
37 BOOL
39  OSTime timeout);
40 
41 BOOL
43 
44 BOOL
46 
47 BOOL
49 
50 BOOL
52  OSTime timeout);
53 
54 BOOL
56 
57 #ifdef __cplusplus
58 }
59 #endif
60 
uint32_t owner
Definition: spinlock.h:19
uint32_t recursion
Definition: spinlock.h:20
BOOL OSAcquireSpinLock(OSSpinLock *spinlock)
void OSInitSpinLock(OSSpinLock *spinlock)
BOOL OSTryAcquireSpinLock(OSSpinLock *spinlock)
BOOL OSUninterruptibleSpinLock_Acquire(OSSpinLock *spinlock)
BOOL OSTryAcquireSpinLockWithTimeout(OSSpinLock *spinlock, OSTime timeout)
BOOL OSUninterruptibleSpinLock_TryAcquire(OSSpinLock *spinlock)
BOOL OSUninterruptibleSpinLock_Release(OSSpinLock *spinlock)
BOOL OSUninterruptibleSpinLock_TryAcquireWithTimeout(OSSpinLock *spinlock, OSTime timeout)
BOOL OSReleaseSpinLock(OSSpinLock *spinlock)
int64_t OSTime
Definition: time.h:18
int32_t BOOL
Definition: wut_types.h:7