Home
last modified time | relevance | path

Searched refs:thread_tcb (Results 1 – 2 of 2) sorted by relevance

/ThreadX-v6.4.1/utility/rtos_compatibility_layers/posix/
Dpx_pth_setschedparam.c78 POSIX_TCB *thread_tcb; in pthread_setschedparam() local
85 thread_tcb=posix_tid2tcb(thread); in pthread_setschedparam()
87 if(thread_tcb==NULL) in pthread_setschedparam()
98 thread_tcb->sched_policy=policy; in pthread_setschedparam()
99 thread_tcb->sched_attr.sched_priority=param->sched_priority; in pthread_setschedparam()
100 thread_tcb->current_priority= param->sched_priority; in pthread_setschedparam()
102 TheThread=posix_tcb2thread(thread_tcb); in pthread_setschedparam()
104 …tx_thread_priority_change(TheThread, (TX_LOWEST_PRIORITY - thread_tcb->current_priority + 1),&Tmp); in pthread_setschedparam()
105 thread_tcb->orig_priority=(ULONG) Tmp; in pthread_setschedparam()
107 if(policy==SCHED_RR) thread_tcb->time_slice=SCHED_RR_TIME_SLICE; in pthread_setschedparam()
[all …]
Dpx_pth_getschedparam.c76 POSIX_TCB *thread_tcb; in pthread_getschedparam() local
79 thread_tcb=posix_tid2tcb(thread); in pthread_getschedparam()
81 if(thread_tcb==NULL) in pthread_getschedparam()
87 *policy=thread_tcb->sched_policy; in pthread_getschedparam()
88 *param=thread_tcb->sched_attr; in pthread_getschedparam()