![]() |
ChibiOS/RT Architecture - Reference Manual - Guides |
Threads code. More...
#include "ch.h"Go to the source code of this file.
Functions | |
| Thread * | init_thread (Thread *tp, tprio_t prio) |
| Initializes a thread structure. | |
| Thread * | chThdCreateI (void *wsp, size_t size, tprio_t prio, tfunc_t pf, void *arg) |
| Creates a new thread into a static memory area. | |
| Thread * | chThdCreateStatic (void *wsp, size_t size, tprio_t prio, tfunc_t pf, void *arg) |
| Creates a new thread into a static memory area. | |
| Thread * | chThdCreateFromHeap (MemoryHeap *heapp, size_t size, tprio_t prio, tfunc_t pf, void *arg) |
| Creates a new thread allocating the memory from the heap. | |
| Thread * | chThdCreateFromMemoryPool (MemoryPool *mp, tprio_t prio, tfunc_t pf, void *arg) |
| Creates a new thread allocating the memory from the specified memory pool. | |
| tprio_t | chThdSetPriority (tprio_t newprio) |
| Changes the running thread priority level then reschedules if necessary. | |
| Thread * | chThdResume (Thread *tp) |
| Resumes a suspended thread. | |
| void | chThdTerminate (Thread *tp) |
| Requests a thread termination. | |
| void | chThdSleep (systime_t time) |
| Suspends the invoking thread for the specified time. | |
| void | chThdSleepUntil (systime_t time) |
| Suspends the invoking thread until the system time arrives to the specified value. | |
| void | chThdYield (void) |
| Yields the time slot. | |
| void | chThdExit (msg_t msg) |
| Terminates the current thread by specifying an exit status code. | |
| Thread * | chThdAddRef (Thread *tp) |
| Adds a reference to a thread object. | |
| void | chThdRelease (Thread *tp) |
| Releases a reference to a thread object. | |
| msg_t | chThdWait (Thread *tp) |
| Blocks the execution of the invoking thread until the specified thread terminates then the exit code is returned. | |
Threads code.
Definition in file chthreads.c.
1.7.1