ARM9 OS: Difference between revisions

Hallowizer (talk | contribs)
Threads: info on how the scheduler works
Hallowizer (talk | contribs)
Threads: waitingMutex isn't part of OSMutexQueue (at least not on wii)
Line 44: Line 44:
struct OSThreadLink linkQueue; // 0x7c
struct OSThreadLink linkQueue; // 0x7c
u32 unknown2; // 0x80
u32 unknown2; // 0x80
struct OSMutexQueue *queueMutex; // 0x84
struct OSMutex *mutex; // 0x84 - set to the mutex the thread is currently trying to lock
struct OSMutexQueue queueMutex; // 0x88
// more unknown fields - the total length is not known
// more unknown fields - the total length is not known
}
}
Line 67: Line 68:


struct OSMutexQueue {
struct OSMutexQueue {
struct OSMutex *waiting;
struct OSMutex *head;
struct OSMutex *head;
struct OSMutex *tail;
struct OSMutex *tail;