|
ChibiOS/RT
2.5.1 |
Threads code.
Definition in file chthreads.c.
#include "ch.h"Go to the source code of this file.
Functions | |
| Thread * | _thread_init (Thread *tp, tprio_t prio) |
| Initializes a thread structure. | |
| void | _thread_memfill (uint8_t *startp, uint8_t *endp, uint8_t v) |
| Memory fill utility. | |
| 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. | |
| 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. | |
| void | chThdExitS (msg_t msg) |
| Terminates the current thread. | |
| msg_t | chThdWait (Thread *tp) |
| Blocks the execution of the invoking thread until the specified thread terminates then the exit code is returned. | |