Collaboration diagram for GCC Context Switch:
Data Structures | |
struct | SWITCHFRAME |
AVR GCC context switch frame layout. More... | |
struct | ENTERFRAME |
Thread entry frame layout. More... | |
Functions | |
void | NutThreadSwitch (void) |
Switch to another thread. | |
HANDLE | NutThreadCreate (char *name, void(*fn)(void *), void *arg, size_t stackSize) |
Create a new thread. |
|
Switch to another thread. Stop the current thread, saving its context. Then start the one with the highest priority, which is ready to run. Application programs typically do not call this function.
|
|
Create a new thread. If the current thread's priority is lower or equal than the default priority (64), then the current thread is stopped and the new one is started.
|