ARM9 OS: Difference between revisions
Hallowizer (talk | contribs) added OSMessageQueue |
Hallowizer (talk | contribs) →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> | ||