Data Structures | |
struct | _NUTTHREADINFO |
Thread information structure. More... | |
Defines | |
#define | DEADBEEF |
#define | TDS_TERM |
#define | TDS_RUNNING |
#define | TDS_READY |
#define | TDS_SLEEP |
#define | THREAD(threadfn, arg) |
Typedefs | |
typedef struct _NUTTHREADINFO | NUTTHREADINFO |
Functions | |
HANDLE | NutThreadCreate (u_char *name, void(*fn)(void *), void *arg, u_short stackSize) |
Create a new thread. More... | |
u_char | NutThreadSetPriority (u_char level) |
Set the current thread's priority. More... | |
void | NutThreadSuspend (HANDLE *thp) |
Suspend the running thread. More... | |
void | NutThreadResume (HANDLE th) |
Resume a previously suspended thread. More... | |
void | NutThreadResumeAsync (HANDLE th) |
Make a previously suspended thread ready to run. More... | |
void | NutThreadWake (HANDLE timer, HANDLE th) |
Resume a previously suspended thread. More... | |
void | NutThreadYield (void) |
Give up the CPU. More... | |
void | NutThreadAddPriQueue (NUTTHREADINFO *td, NUTTHREADINFO *volatile *tqpp) |
Add a thread to a prioritiy ordered queue. More... | |
void | NutThreadRemoveQueue (NUTTHREADINFO *td, NUTTHREADINFO *volatile *tqpp) |
Remove a thread from a specified queue. More... | |
void | NutThreadSwitch (void) |
Switch to another thread. More... | |
void | DumpThreads (HANDLE handle) |
Variables | |
NUTTHREADINFO* | runningThread |
Currently running thread. More... | |
NUTTHREADINFO* volatile | nutThreadList |
NUTTHREADINFO* volatile | runQueue |
List of ready-to-run threads. More... |