mirror of
https://github.com/zeldaret/tp
synced 2026-05-28 08:25:48 -04:00
Merge with upstream
This commit is contained in:
@@ -51,6 +51,8 @@ typedef enum {
|
||||
typedef u8 __OSException;
|
||||
|
||||
typedef void (*OSErrorHandler)(OSError error, OSContext* context, u32, u32);
|
||||
// Using this type for the C++ handlers makes stuff not match
|
||||
typedef void (*OSErrorHandlerEx)(OSError error, OSContext* context, u32, u32, ...);
|
||||
|
||||
OSErrorHandler OSSetErrorHandler(OSError error, OSErrorHandler handler);
|
||||
void __OSUnhandledException(__OSException exception, OSContext* context, u32 dsisr, u32 dar);
|
||||
|
||||
@@ -21,13 +21,13 @@ typedef struct OSCond {
|
||||
void OSInitMutex(OSMutex* mutex);
|
||||
void OSLockMutex(OSMutex* mutex);
|
||||
void OSUnlockMutex(OSMutex* mutex);
|
||||
s32 OSTryLockMutex(OSMutex* mutex);
|
||||
BOOL OSTryLockMutex(OSMutex* mutex);
|
||||
void OSInitCond(OSCond* cond);
|
||||
void OSWaitCond(OSCond* cond, OSMutex* mutex);
|
||||
void OSSignalCond(OSCond* cond);
|
||||
|
||||
void __OSUnlockAllMutex(OSThread* thread);
|
||||
s32 __OSCheckMutex(OSThread* thread);
|
||||
BOOL __OSCheckMutex(OSMutex* thread);
|
||||
BOOL __OSCheckDeadLock(OSThread* thread);
|
||||
BOOL __OSCheckMutexes(OSThread* thread);
|
||||
|
||||
|
||||
@@ -44,8 +44,8 @@ struct OSThreadQueue {
|
||||
};
|
||||
|
||||
struct OSMutexLink {
|
||||
OSMutex* prev;
|
||||
OSMutex* next;
|
||||
OSMutex* prev;
|
||||
};
|
||||
|
||||
struct OSMutexQueue {
|
||||
|
||||
Reference in New Issue
Block a user