Searched refs:thread_tcb (Results 1 – 2 of 2) sorted by relevance
79 POSIX_TCB *thread_tcb; in pthread_setschedparam() local86 thread_tcb=posix_tid2tcb(thread); in pthread_setschedparam()88 if(thread_tcb==NULL) in pthread_setschedparam()99 thread_tcb->sched_policy=policy; in pthread_setschedparam()100 thread_tcb->sched_attr.sched_priority=param->sched_priority; in pthread_setschedparam()101 thread_tcb->current_priority= param->sched_priority; in pthread_setschedparam()103 TheThread=posix_tcb2thread(thread_tcb); in pthread_setschedparam()105 …tx_thread_priority_change(TheThread, (TX_LOWEST_PRIORITY - thread_tcb->current_priority + 1),&Tmp); in pthread_setschedparam()106 thread_tcb->orig_priority=(ULONG) Tmp; in pthread_setschedparam()108 if(policy==SCHED_RR) thread_tcb->time_slice=SCHED_RR_TIME_SLICE; in pthread_setschedparam()[all …]
77 POSIX_TCB *thread_tcb; in pthread_getschedparam() local80 thread_tcb=posix_tid2tcb(thread); in pthread_getschedparam()82 if(thread_tcb==NULL) in pthread_getschedparam()88 *policy=thread_tcb->sched_policy; in pthread_getschedparam()89 *param=thread_tcb->sched_attr; in pthread_getschedparam()