X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Kernel%2Finclude%2Fthreads_int.h;h=6516b35af967b38bdeff97fe950c4738228c877e;hb=5f2024e5977e0cca0993a20dad5ab794c94d5711;hp=124f51a190b4993189f34b31b4f4c9ca9ba79876;hpb=dc42c3998b01e66a609fed5d503a81a972e636d6;p=tpg%2Facess2.git diff --git a/Kernel/include/threads_int.h b/Kernel/include/threads_int.h index 124f51a1..6516b35a 100644 --- a/Kernel/include/threads_int.h +++ b/Kernel/include/threads_int.h @@ -78,6 +78,7 @@ enum { THREAD_STAT_SLEEPING, // Message Sleep THREAD_STAT_MUTEXSLEEP, // Mutex Sleep THREAD_STAT_SEMAPHORESLEEP, // Semaphore Sleep + THREAD_STAT_QUEUESLEEP, // Queue THREAD_STAT_WAITING, // ??? (Waiting for a thread) THREAD_STAT_PREINIT, // Being created THREAD_STAT_ZOMBIE, // Died/Killed, but parent not informed @@ -90,6 +91,7 @@ static const char * const casTHREAD_STAT[] = { "THREAD_STAT_SLEEPING", "THREAD_STAT_MUTEXSLEEP", "THREAD_STAT_SEMAPHORESLEEP", + "THREAD_STAT_QUEUESLEEP", "THREAD_STAT_WAITING", "THREAD_STAT_PREINIT", "THREAD_STAT_ZOMBIE", @@ -99,6 +101,7 @@ static const char * const casTHREAD_STAT[] = { // === GLOBALS === extern BOOL gaThreads_NoTaskSwitch[MAX_CPUS]; +extern tShortSpinlock glThreadListLock; // === FUNCTIONS === extern tThread *Proc_GetCurThread(void); @@ -109,6 +112,7 @@ extern int Threads_Wake(tThread *Thread); extern void Threads_Kill(tThread *Thread, int Status); extern void Threads_AddActive(tThread *Thread); extern tThread *Threads_RemActive(void); +extern void Threads_Delete(tThread *Thread); extern tThread *Threads_GetNextToRun(int CPU, tThread *Last); extern tThread *Threads_CloneTCB(Uint Flags);