Go to the documentation of this file.
52 #if (CH_CFG_USE_REGISTRY == TRUE) || defined(__DOXYGEN__)
70 #define _offsetof(st, m) \
73 ((size_t)((char *)&((st *)0)->m - (char *)0)) \
90 (uint8_t)
sizeof (
void *),
98 #if (CH_DBG_ENABLE_STACK_CHECK == TRUE) || (CH_CFG_USE_DYNAMIC == TRUE)
99 (uint8_t)_offsetof(
thread_t, wabase),
103 (uint8_t)_offsetof(
thread_t, state),
104 (uint8_t)_offsetof(
thread_t, flags),
105 #if CH_CFG_USE_DYNAMIC == TRUE
111 (uint8_t)_offsetof(
thread_t, ticks),
139 #if CH_CFG_USE_DYNAMIC == TRUE
168 #if CH_CFG_USE_DYNAMIC == TRUE
175 #if CH_CFG_USE_DYNAMIC == TRUE
204 }
while (ctp != NULL);
231 }
while (ctp != NULL);
236 #if (CH_DBG_ENABLE_STACK_CHECK == TRUE) || (CH_CFG_USE_DYNAMIC == TRUE) || \
260 }
while (ctp != NULL);
struct ch_thread thread_t
Type of a thread structure.
static void chSysLock(void)
Enters the kernel lock state.
ch_priority_queue_t pqueue
Threads ordered queues element.
thread_t * newer
Newer registry element.
#define CH_CFG_TIME_QUANTUM
Round robin interval.
thread_t * chRegFindThreadByName(const char *name)
Retrieves a thread pointer by name.
#define CH_KERNEL_MAJOR
Kernel version major number.
uint64_t systime_t
Type of system time.
#define chDbgAssert(c, r)
Condition assertion.
static const char * chRegGetThreadNameX(thread_t *tp)
Returns the name of the specified thread.
thread_t * chRegFindThreadByPointer(thread_t *tp)
Confirms that a pointer is a valid thread pointer.
static stkalign_t * chThdGetWorkingAreaX(thread_t *tp)
Returns the working area base of the specified thread.
trefs_t refs
References to this thread.
Structure representing a thread.
thread_t * chRegFindThreadByWorkingArea(stkalign_t *wa)
Confirms that a working area is being used by some active thread.
#define CH_KERNEL_MINOR
Kernel version minor number.
thread_t * chRegFirstThread(void)
Returns the first thread in the system.
ch_system_t ch
System data structures.
#define CH_DBG_THREADS_PROFILING
Debug option, threads profiling.
#define CH_KERNEL_PATCH
Kernel version patch number.
ChibiOS/RT main include file.
static void chSysUnlock(void)
Leaves the kernel lock state.
ready_list_t rlist
Ready list header.
thread_t * chRegNextThread(thread_t *tp)
Returns the thread next to the specified one.
#define TRUE
Generic 'true' preprocessor boolean constant.
void chThdRelease(thread_t *tp)
Releases a reference to a thread object.
ChibiOS/RT memory signature record.