#include <arch.h>
#include <signal.h>
+#include <proc.h>
typedef struct sMessage
{
int NumTickets; //!< Priority - Chance of gaining CPU
Uint Config[NUM_CFG_ENTRIES]; //!< Per-process configuration
+
+ // --- proc.c's
+ volatile int CurCPU;
} tThread;
FAULT_FLOAT
};
+#define GETMSG_IGNORE ((void*)-1)
+
// === FUNCTIONS ===
-extern tThread *Proc_GetCurThread();
+extern tThread *Proc_GetCurThread(void);
extern tThread *Threads_GetThread(Uint TID);
-extern void Threads_Wake(tThread *Thread);
+extern void Threads_SetTickets(tThread *Thread, int Num);
+extern int Threads_Wake(tThread *Thread);
extern void Threads_AddActive(tThread *Thread);
+extern tThread *Threads_GetNextToRun(int CPU, tThread *Last);
#endif