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);
thread_t * chRegFindThreadByName(const char *name)
Retrieves a thread pointer by name.
uint64_t systime_t
Type of system time.
static void chSysLock(void)
Enters the kernel lock state.
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.
trefs_t refs
References to this thread.
static void chSysUnlock(void)
Leaves the kernel lock state.
static stkalign_t * chThdGetWorkingAreaX(thread_t *tp)
Returns the working area base of the specified thread.
#define CH_DBG_THREADS_PROFILING
Debug option, threads profiling.
thread_t * chRegFindThreadByWorkingArea(stkalign_t *wa)
Confirms that a working area is being used by some active thread.
ChibiOS/RT memory signature record.
thread_t * chRegFirstThread(void)
Returns the first thread in the system.
ready_list_t rlist
Ready list header.
ch_system_t ch
System data structures.
#define chDbgAssert(c, r)
Condition assertion.
#define TRUE
Generic 'true' preprocessor boolean constant.
#define CH_CFG_TIME_QUANTUM
Round robin interval.
#define CH_KERNEL_MAJOR
Kernel version major number.
thread_t * chRegNextThread(thread_t *tp)
Returns the thread next to the specified one.
struct ch_thread thread_t
Type of a thread structure.
void chThdRelease(thread_t *tp)
Releases a reference to a thread object.
ChibiOS/RT main include file.
#define CH_KERNEL_PATCH
Kernel version patch number.
thread_t * newer
Newer registry element.
#define CH_KERNEL_MINOR
Kernel version minor number.
Structure representing a thread.