Home
last modified time | relevance | path

Searched refs:pthread_ptr (Results 1 – 11 of 11) sorted by relevance

/ThreadX-v6.4.1/utility/rtos_compatibility_layers/posix/
Dpx_pth_create.c114 POSIX_TCB *pthread_ptr, *current_thread_ptr; in pthread_create() local
150 status = posix_allocate_pthread_t(&pthread_ptr); in pthread_create()
153 if ((status == ERROR) || (!pthread_ptr)) in pthread_create()
165 pthread_ptr->current_priority = current_thread_ptr->current_priority ; in pthread_create()
166 pthread_ptr->detach_state = current_thread_ptr->detach_state ; in pthread_create()
167 pthread_ptr->inherit_sched = current_thread_ptr->inherit_sched ; in pthread_create()
168 pthread_ptr->orig_priority = current_thread_ptr->orig_priority ; in pthread_create()
169 pthread_ptr->sched_attr.sched_priority= current_thread_ptr->sched_attr.sched_priority ; in pthread_create()
170 pthread_ptr->pthread_flags = current_thread_ptr->pthread_flags ; in pthread_create()
171 pthread_ptr->sched_policy = current_thread_ptr->sched_policy; in pthread_create()
[all …]
Dpx_pth_init.c216 VOID posix_copy_pthread_attr(POSIX_TCB *pthread_ptr,pthread_attr_t *attr) in posix_copy_pthread_attr() argument
219 pthread_ptr->current_priority = attr->sched_attr.sched_priority ; in posix_copy_pthread_attr()
220 pthread_ptr->detach_state = attr->detach_state ; in posix_copy_pthread_attr()
221 pthread_ptr->inherit_sched = attr->inherit_sched ; in posix_copy_pthread_attr()
222 pthread_ptr->orig_priority = attr->sched_attr.sched_priority ; in posix_copy_pthread_attr()
223 pthread_ptr->sched_attr.sched_priority= attr->sched_attr.sched_priority ; in posix_copy_pthread_attr()
224 pthread_ptr->pthread_flags = attr->pthread_flags ; in posix_copy_pthread_attr()
225 pthread_ptr->sched_policy = attr->sched_policy; in posix_copy_pthread_attr()
226 pthread_ptr->stack_size = attr->stack_size ; in posix_copy_pthread_attr()
227 pthread_ptr->stack_address = attr->stack_address; in posix_copy_pthread_attr()
[all …]
Dpx_pth_testcancel.c75 POSIX_TCB *pthread_ptr; in pthread_testcancel() local
79 pthread_ptr = posix_tid2tcb(pthread_self()); in pthread_testcancel()
82 if ( (pthread_ptr->cancel_state == PTHREAD_CANCEL_ENABLE) && in pthread_testcancel()
83 (pthread_ptr->cancel_type==PTHREAD_CANCEL_DEFERRED) && in pthread_testcancel()
84 (pthread_ptr->cancel_request==TRUE) ) in pthread_testcancel()
88 posix_destroy_pthread(pthread_ptr,(VOID *)0); in pthread_testcancel()
Dpx_pth_cancel.c75 POSIX_TCB *pthread_ptr; in pthread_cancel() local
90 pthread_ptr = (POSIX_TCB *)thread_ptr; in pthread_cancel()
93 if ( pthread_ptr->cancel_state != PTHREAD_CANCEL_ENABLE) in pthread_cancel()
99 if( pthread_ptr->cancel_type==PTHREAD_CANCEL_DEFERRED ) in pthread_cancel()
102 pthread_ptr->cancel_request=TRUE; in pthread_cancel()
104 else if(pthread_ptr->cancel_type==PTHREAD_CANCEL_ASYNCHRONOUS ) in pthread_cancel()
108 posix_destroy_pthread(pthread_ptr,(VOID *)0); in pthread_cancel()
Dpx_pth_detach.c87 POSIX_TCB *pthread_ptr; in pthread_detach() local
91 pthread_ptr = posix_tid2tcb(thread); in pthread_detach() local
92 if(pthread_ptr==NULL) in pthread_detach()
97 if(pthread_ptr->is_detached==TX_TRUE) in pthread_detach()
102 pthread_ptr->is_detached = TX_TRUE; in pthread_detach()
Dpx_pth_setcancelstate.c78 POSIX_TCB *pthread_ptr; in pthread_setcancelstate() local
88 pthread_ptr = (POSIX_TCB *)thread_ptr; in pthread_setcancelstate()
89 *oldstate = pthread_ptr->cancel_state; in pthread_setcancelstate()
90 pthread_ptr->cancel_state = state; in pthread_setcancelstate()
Dpx_pth_setcanceltype.c77 POSIX_TCB *pthread_ptr; in pthread_setcanceltype() local
87 pthread_ptr = (POSIX_TCB *)thread_ptr; in pthread_setcanceltype()
88 *oldtype = pthread_ptr->cancel_type; in pthread_setcanceltype()
89 pthread_ptr->cancel_type = type; in pthread_setcanceltype()
Dpx_pth_getcanceltype.c75 POSIX_TCB *pthread_ptr; in pthread_getcanceltype() local
85 pthread_ptr = (POSIX_TCB *)thread_ptr; in pthread_getcanceltype()
86 *oldtype = pthread_ptr->cancel_type; in pthread_getcanceltype()
87 pthread_ptr->cancel_type = type; in pthread_getcanceltype()
Dpx_system_manager.c76 POSIX_TCB *pthread_ptr; in posix_system_manager_entry() local
95 pthread_ptr = (POSIX_TCB *)((((ALIGN_TYPE)request[0]) << 32) | request[1]); in posix_system_manager_entry()
98 pthread_ptr = (POSIX_TCB *)request[0]; in posix_system_manager_entry()
103 posix_do_pthread_delete(pthread_ptr, value_ptr); in posix_system_manager_entry()
Dpx_pth_exit.c80 POSIX_TCB *pthread_ptr; in pthread_exit() local
85 pthread_ptr = (POSIX_TCB *)thread_ptr; in pthread_exit()
88 posix_destroy_pthread(pthread_ptr,value_ptr); in pthread_exit()
Dpx_int.h187 TX_THREAD *posix_tcb2thread (POSIX_TCB *pthread_ptr);
197 VOID posix_copy_pthread_attr(POSIX_TCB *pthread_ptr,pthread_attr_t *attr);
199 VOID posix_destroy_pthread(POSIX_TCB *pthread_ptr, VOID *value_ptr);
201 VOID posix_do_pthread_delete(POSIX_TCB *pthread_ptr, VOID *value_ptr);