Searched refs:outAttr (Results 1 – 1 of 1) sorted by relevance
140 …VOID SetPthreadAttr(const _pthread_data *self, const pthread_attr_t *attr, pthread_attr_t *outAttr) in SetPthreadAttr() argument147 (VOID)pthread_attr_init(outAttr); in SetPthreadAttr()149 (VOID)memcpy_s(outAttr, sizeof(pthread_attr_t), attr, sizeof(pthread_attr_t)); in SetPthreadAttr()156 if (!outAttr->stacksize_set) { in SetPthreadAttr()157 outAttr->stacksize = LOSCFG_BASE_CORE_TSK_DEFAULT_STACK_SIZE; in SetPthreadAttr()159 if (outAttr->inheritsched == PTHREAD_INHERIT_SCHED) { in SetPthreadAttr()161 outAttr->schedparam.sched_priority = LOS_TaskPriGet(OsCurrTaskGet()->taskID); in SetPthreadAttr()163 outAttr->schedpolicy = self->attr.schedpolicy; in SetPthreadAttr()164 outAttr->schedparam = self->attr.schedparam; in SetPthreadAttr()165 outAttr->scope = self->attr.scope; in SetPthreadAttr()