ChibiOS/RT
2.5.1
chthreads.c File Reference

Detailed Description

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.
ThreadchThdCreateI (void *wsp, size_t size, tprio_t prio, tfunc_t pf, void *arg)
 Creates a new thread into a static memory area.
ThreadchThdCreateStatic (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.
ThreadchThdResume (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.