Lines Matching refs:thrd
249 int startThread(Thread * thrd) in startThread() argument
255 printf("Start thread priority %d\n", thrd->priority); in startThread()
256 if (pthread_attr_init(&(thrd->attr)) != 0) { in startThread()
260 thrd->flags = 0; in startThread()
262 schedp.sched_priority = thrd->priority; in startThread()
263 policy = thrd->policy; in startThread()
265 if (pthread_attr_setschedpolicy(&(thrd->attr), policy) != 0) { in startThread()
268 if (pthread_attr_getschedpolicy(&(thrd->attr), &policy) != 0) { in startThread()
273 if (pthread_attr_setschedparam(&(thrd->attr), &schedp) != 0) { in startThread()
276 if (pthread_attr_getschedparam(&(thrd->attr), &schedp) != 0) { in startThread()
281 if (pthread_attr_setinheritsched(&(thrd->attr), PTHREAD_EXPLICIT_SCHED) in startThread()
285 if (pthread_attr_getinheritsched(&(thrd->attr), &inherit) != 0) { in startThread()
290 if ((retc = pthread_mutex_init(&(thrd->mutex), NULL)) != 0) { in startThread()
296 if (pthread_cond_init(&(thrd->cond), &condattr) != 0) { in startThread()
300 pthread_create(&(thrd->pthread), &(thrd->attr), thrd->func, thrd); in startThread()