Changes

308 bytes added ,  03:23, 30 June 2022
→‎Threads: added mutex structs
Line 42: Line 42:  
struct OSThreadQueue *queue; // 0x78
 
struct OSThreadQueue *queue; // 0x78
 
struct OSThreadLink linkQueue; // 0x7c
 
struct OSThreadLink linkQueue; // 0x7c
 +
u32 unknown2; // 0x80
 +
struct OSMutexQueue *queueMutex; // 0x84
 
// more unknown fields - the total length is not known
 
// more unknown fields - the total length is not known
 
}
 
}
Line 53: Line 55:  
struct OSThread *prev;
 
struct OSThread *prev;
 
struct OSThread *next;
 
struct OSThread *next;
 +
}
 +
 +
struct OSMutex {
 +
struct OSThreadQueue waitingQueue;
 +
struct OSThread *holder;
 +
u32 timesLocked;
 +
struct OSMutex *next;
 +
struct OSMutex *prev;
 +
}
 +
 +
struct OSMutexQueue {
 +
struct OSMutex *waiting;
 +
struct OSMutex *head;
 +
struct OSMutex *tail;
 
}
 
}
 
</pre>
 
</pre>
322

edits