Lines Matching refs:thread
64 pthread_getschedparam(pthread_t thread, int *policy, struct sched_param *param) in __strong_alias()
68 thread->pt_magic == PT_MAGIC); in __strong_alias()
70 if (pthread__find(thread) != 0) in __strong_alias()
73 if (_sched_getparam(getpid(), thread->pt_lid, policy, param) < 0) in __strong_alias()
80 pthread_setschedparam(pthread_t thread, int policy, in pthread_setschedparam() argument
86 thread->pt_magic == PT_MAGIC); in pthread_setschedparam()
88 if (pthread__find(thread) != 0) in pthread_setschedparam()
92 if (_sched_setparam(getpid(), thread->pt_lid, policy, &sp) < 0) in pthread_setschedparam()
99 pthread_getaffinity_np(pthread_t thread, size_t size, cpuset_t *cpuset) in pthread_getaffinity_np() argument
103 thread->pt_magic == PT_MAGIC); in pthread_getaffinity_np()
105 if (pthread__find(thread) != 0) in pthread_getaffinity_np()
108 if (_sched_getaffinity(getpid(), thread->pt_lid, size, cpuset) < 0) in pthread_getaffinity_np()
115 pthread_setaffinity_np(pthread_t thread, size_t size, cpuset_t *cpuset) in pthread_setaffinity_np() argument
119 thread->pt_magic == PT_MAGIC); in pthread_setaffinity_np()
121 if (pthread__find(thread) != 0) in pthread_setaffinity_np()
124 if (_sched_setaffinity(getpid(), thread->pt_lid, size, cpuset) < 0) in pthread_setaffinity_np()
131 pthread_setschedprio(pthread_t thread, int prio) in pthread_setschedprio() argument
136 thread->pt_magic == PT_MAGIC); in pthread_setschedprio()
138 if (pthread__find(thread) != 0) in pthread_setschedprio()
142 if (_sched_setparam(getpid(), thread->pt_lid, SCHED_NONE, &sp) < 0) in pthread_setschedprio()
149 pthread_kill(pthread_t thread, int sig) in pthread_kill() argument
153 thread->pt_magic == PT_MAGIC); in pthread_kill()
157 if (pthread__find(thread) != 0) in pthread_kill()
159 if (_lwp_kill(thread->pt_lid, sig)) in pthread_kill()