* threads.c
* - Threads handling
*/
+#define DEBUG 0
#include <acess.h>
#include <threads.h>
#include <threads_int.h>
{
Thread->Status = THREAD_STAT_ACTIVE;
// Increment state-change semaphore
+ LOG("Waking %p(%i %s)", Thread, Thread->TID, Thread->ThreadName);
Threads_int_SemSignal(Thread->WaitSemaphore);
}
Log_Warning("Threads", "Thread %p(%i %s) rescheduled while in %s state",
us, us->TID, us->ThreadName, casTHREAD_STAT[Status]);
}
+ LOG("%p(%i %s) Awake", us, us->TID, us->ThreadName);
}
int Threads_int_Sleep(enum eThreadStatus Status, void *Ptr, int Num, tThread **ListHead, tThread **ListTail, tShortSpinlock *Lock)