Tizen RT Libs&Environment  v1.1 D4
pthread_tcb_s Struct Reference

This is the particular form of the task control block (TCB) structure used by pthreads. There are two TCB forms: one for pthreads and one for tasks. Both share the common TCB fields (which must appear at the top of the structure) plus additional fields unique to tasks and threads. Having separate structures for tasks and pthreads adds some complexity, but saves memory in that it prevents pthreads from being burdened with the overhead required for tasks (and vice versa). More...

#include <sched.h>

Collaboration diagram for pthread_tcb_s:

Data Fields

struct tcb_s cmn
 
pthread_addr_t arg
 
FAR void * joininfo
 
FAR struct pthread_mutex_smhead
 
FAR void * pthread_data [CONFIG_NPTHREAD_KEYS]
 

Detailed Description

This is the particular form of the task control block (TCB) structure used by pthreads. There are two TCB forms: one for pthreads and one for tasks. Both share the common TCB fields (which must appear at the top of the structure) plus additional fields unique to tasks and threads. Having separate structures for tasks and pthreads adds some complexity, but saves memory in that it prevents pthreads from being burdened with the overhead required for tasks (and vice versa).

Definition at line 622 of file sched.h.

Field Documentation

◆ arg

Definition at line 629 of file sched.h.

◆ cmn

struct tcb_s cmn

Definition at line 625 of file sched.h.

◆ joininfo

FAR void* joininfo

Definition at line 630 of file sched.h.

◆ mhead

FAR struct pthread_mutex_s* mhead

Definition at line 635 of file sched.h.

◆ pthread_data

FAR void* pthread_data[CONFIG_NPTHREAD_KEYS]

Definition at line 652 of file sched.h.


The documentation for this struct was generated from the following file: