Lines Matching defs:thread
71 /* Some highly performance-sensitive thread-local variables like the current GL
159 * Set thread affinity.
161 * \param thread Thread
168 util_set_thread_affinity(thrd_t thread,
177 if (pthread_getaffinity_np(thread, sizeof(cpuset), &cpuset) != 0)
192 return pthread_setaffinity_np(thread, sizeof(cpuset), &cpuset) == 0;
200 m = SetThreadAffinityMask(thread, m);
229 /* The GetCurrentThreadId() handle is only valid within the current thread. */
243 /* Return the time of a thread's CPU time clock. */
245 util_thread_get_time_nano(thrd_t thread)
251 pthread_getcpuclockid(thread, &cid);
255 (void)thread;
260 /* Return the time of the current thread's CPU time clock. */
268 /* The GetCurrentThreadId() handle is only valid within the current thread. */
276 static inline bool u_thread_is_self(thrd_t thread)
279 return pthread_equal(pthread_self(), thread);
381 * side-step this mess and use Windows thread primitives directly here.