Home
last modified time | relevance | path

Searched refs:attr (Results 1 – 25 of 35) sorted by relevance

12

/ThreadX-v6.2.1/utility/rtos_compatibility_layers/posix/
Dpx_pth_set_default_pthread_attr.c66 VOID set_default_pthread_attr(pthread_attr_t *attr) in set_default_pthread_attr() argument
68 attr->detach_state =PTHREAD_CREATE_JOINABLE; in set_default_pthread_attr()
69 attr->inherit_sched =0; in set_default_pthread_attr()
70 attr->inuse =TX_TRUE; in set_default_pthread_attr()
71 attr->pthread_flags =0; in set_default_pthread_attr()
72 attr->sched_attr.sched_priority =31; in set_default_pthread_attr()
73 attr->sched_policy =0; in set_default_pthread_attr()
74 attr->stack_address =0; in set_default_pthread_attr()
75 attr->stack_size = TX_DEFAULT_THREAD_STACK_SIZE; in set_default_pthread_attr()
Dpx_pth_attr_init.c71 INT pthread_attr_init(pthread_attr_t *attr) in pthread_attr_init() argument
79 if (attr->inuse == TX_FALSE) in pthread_attr_init()
80 attr->inuse = TX_TRUE; in pthread_attr_init()
82 set_default_pthread_attr(attr); in pthread_attr_init()
Dtx_posix.h501 INT pthread_create (pthread_t *thread, pthread_attr_t *attr,
508 INT pthread_attr_destroy(pthread_attr_t *attr);
509 INT pthread_attr_getdetachstate( pthread_attr_t *attr,INT *detachstate);
510 INT pthread_attr_setdetachstate(pthread_attr_t *attr,INT detachstate);
511 INT pthread_attr_getinheritsched(pthread_attr_t *attr, INT *inheritsched);
512 INT pthread_attr_setinheritsched(pthread_attr_t *attr, INT inheritsched);
513 INT pthread_attr_getschedparam(pthread_attr_t *attr,struct sched_param *param);
514 INT pthread_attr_setschedparam(pthread_attr_t *attr,struct sched_param *param);
515 INT pthread_attr_getschedpolicy(pthread_attr_t *attr, INT *policy);
516 INT pthread_attr_setschedpolicy(pthread_attr_t *attr, INT policy);
[all …]
Dpx_mx_attr_initi.c71 INT pthread_mutexattr_init(pthread_mutexattr_t *attr) in pthread_mutexattr_init() argument
81 if (attr->in_use == TX_TRUE) in pthread_mutexattr_init()
88 attr->in_use = TX_TRUE; in pthread_mutexattr_init()
89 set_default_mutexattr(attr); in pthread_mutexattr_init()
Dpx_pth_attr_getstack.c74 INT pthread_attr_getstack( pthread_attr_t *attr,void **stackaddr, in pthread_attr_getstack() argument
78 if (attr->inuse == TX_FALSE) in pthread_attr_getstack()
86 *stackaddr = attr->stack_address; in pthread_attr_getstack()
87 *stacksize = attr->stack_size ; in pthread_attr_getstack()
Dpx_pth_attr_setstack.c74 INT pthread_attr_setstack( pthread_attr_t *attr,void *stackaddr, in pthread_attr_setstack() argument
78 if (attr->inuse == TX_FALSE) in pthread_attr_setstack()
86 attr->stack_address = stackaddr; /* This has got no effect */ in pthread_attr_setstack()
87 attr->stack_size = stacksize; in pthread_attr_setstack()
Dpx_mx_init.c76 INT pthread_mutex_init(pthread_mutex_t *mutex ,pthread_mutexattr_t *attr) in pthread_mutex_init() argument
97 if (!attr) in pthread_mutex_init()
100 attr = &(posix_default_mutex_attr); in pthread_mutex_init()
105 if (( (attr->in_use) == TX_FALSE)|| (attr->type!=PTHREAD_MUTEX_RECURSIVE)) in pthread_mutex_init()
Dpx_pth_attr_destroy.c75 INT pthread_attr_destroy(pthread_attr_t *attr) in pthread_attr_destroy() argument
80 if (attr->inuse == TX_FALSE) in pthread_attr_destroy()
85 attr->inuse = TX_FALSE; in pthread_attr_destroy()
Dpx_mx_attr_destroy.c74 INT pthread_mutexattr_destroy(pthread_mutexattr_t *attr) in pthread_mutexattr_destroy() argument
79 if (attr->in_use == TX_FALSE) in pthread_mutexattr_destroy()
88 attr->in_use = TX_FALSE; in pthread_mutexattr_destroy()
Dpx_pth_attr_getstackaddr.c71 INT pthread_attr_getstackaddr( pthread_attr_t *attr,void **stackaddr) in pthread_attr_getstackaddr() argument
74 if (attr->inuse == TX_FALSE) in pthread_attr_getstackaddr()
82 *stackaddr = attr->stack_address ; in pthread_attr_getstackaddr()
Dpx_pth_attr_setstackaddr.c71 INT pthread_attr_setstackaddr(pthread_attr_t *attr,void *stackaddr) in pthread_attr_setstackaddr() argument
75 if (attr->inuse == TX_FALSE) in pthread_attr_setstackaddr()
83 attr->stack_address = stackaddr; in pthread_attr_setstackaddr()
Dpx_pth_create.c107 INT pthread_create (pthread_t *thread, pthread_attr_t *attr, in pthread_create() argument
131 if (!attr) in pthread_create()
134 attr = &(posix_default_pthread_attr); in pthread_create()
139 if ( (attr->inuse) == TX_FALSE) in pthread_create()
160 if(attr->inherit_sched==PTHREAD_INHERIT_SCHED) in pthread_create()
181 posix_copy_pthread_attr(pthread_ptr,attr); in pthread_create()
211 if((attr->stack_address)==NULL) in pthread_create()
213 pthread_ptr->stack_size = attr->stack_size ; in pthread_create()
Dpx_mx_attr_getprotocol.c72 INT pthread_mutexattr_getprotocol( pthread_mutexattr_t *attr, INT *protocol) in pthread_mutexattr_getprotocol() argument
76 if (attr->in_use == TX_FALSE) in pthread_mutexattr_getprotocol()
84 *protocol = attr->protocol; in pthread_mutexattr_getprotocol()
Dpx_mx_attr_getpshared.c72 INT pthread_mutexattr_getpshared( pthread_mutexattr_t *attr, INT *pshared) in pthread_mutexattr_getpshared() argument
76 if (attr->in_use == TX_FALSE) in pthread_mutexattr_getpshared()
84 *pshared = attr->pshared; in pthread_mutexattr_getpshared()
Dpx_mx_attr_gettype.c72 INT pthread_mutexattr_gettype( pthread_mutexattr_t *attr, INT *type) in pthread_mutexattr_gettype() argument
76 if (attr->in_use == TX_FALSE) in pthread_mutexattr_gettype()
84 *type = attr->type ; in pthread_mutexattr_gettype()
Dpx_pth_attr_getdetachstate.c78 INT pthread_attr_getdetachstate( pthread_attr_t *attr,INT *detachstate) in pthread_attr_getdetachstate() argument
82 if (attr->inuse == TX_FALSE) in pthread_attr_getdetachstate()
90 *detachstate = attr->detach_state ; in pthread_attr_getdetachstate()
Dpx_pth_attr_getinheritsched.c78 INT pthread_attr_getinheritsched(pthread_attr_t *attr, INT *inheritsched) in pthread_attr_getinheritsched() argument
81 if (attr->inuse == TX_FALSE) in pthread_attr_getinheritsched()
89 *inheritsched = attr->inherit_sched ; in pthread_attr_getinheritsched()
Dpx_pth_attr_getschedpolicy.c72 INT pthread_attr_getschedpolicy(pthread_attr_t *attr, INT *policy) in pthread_attr_getschedpolicy() argument
75 if (attr->inuse == TX_FALSE) in pthread_attr_getschedpolicy()
83 *policy = attr->sched_policy; in pthread_attr_getschedpolicy()
Dpx_pth_attr_getstacksize.c73 INT pthread_attr_getstacksize(pthread_attr_t *attr, size_t *stacksize) in pthread_attr_getstacksize() argument
77 if (attr->inuse == TX_FALSE) in pthread_attr_getstacksize()
85 *stacksize = attr->stack_size; in pthread_attr_getstacksize()
Dpx_pth_attr_setdetachstate.c78 INT pthread_attr_setdetachstate(pthread_attr_t *attr,INT detachstate) in pthread_attr_setdetachstate() argument
81 if (attr->inuse == TX_FALSE) in pthread_attr_setdetachstate()
89 attr->detach_state = detachstate ; in pthread_attr_setdetachstate()
Dpx_pth_attr_setinheritsched.c76 INT pthread_attr_setinheritsched(pthread_attr_t *attr, INT inheritsched) in pthread_attr_setinheritsched() argument
79 if (attr->inuse == TX_FALSE) in pthread_attr_setinheritsched()
87 attr->inherit_sched = inheritsched ; in pthread_attr_setinheritsched()
Dpx_pth_attr_setschedpolicyl.c72 INT pthread_attr_setschedpolicy(pthread_attr_t *attr, INT policy) in pthread_attr_setschedpolicy() argument
75 if (attr->inuse == TX_FALSE) in pthread_attr_setschedpolicy()
83 attr->sched_policy = policy; in pthread_attr_setschedpolicy()
Dpx_pth_attr_setstacksize.c72 INT pthread_attr_setstacksize(pthread_attr_t *attr, size_t stacksize) in pthread_attr_setstacksize() argument
75 if (attr->inuse == TX_FALSE) in pthread_attr_setstacksize()
83 attr->stack_size = stacksize; in pthread_attr_setstacksize()
Dpx_pth_attr_getschedparam.c73 INT pthread_attr_getschedparam(pthread_attr_t *attr,struct sched_param *param) in pthread_attr_getschedparam() argument
76 if (attr->inuse == TX_FALSE) in pthread_attr_getschedparam()
84 param->sched_priority = attr->sched_attr.sched_priority; in pthread_attr_getschedparam()
Dpx_mx_attr_setprotocol.c72 INT pthread_mutexattr_setprotocol(pthread_mutexattr_t *attr, INT protocol) in pthread_mutexattr_setprotocol() argument
76 if (attr->in_use == TX_FALSE) in pthread_mutexattr_setprotocol()
86 attr->protocol = protocol; in pthread_mutexattr_setprotocol()

12