Lines Matching defs:thread
68 /* Some highly performance-sensitive thread-local variables like the current GL
79 #define __THREAD_INITIAL_EXEC __declspec(thread)
109 thrd_t thread;
117 ret = thrd_create( &thread, routine, param );
121 ret = thrd_create( &thread, routine, param );
126 return thread;
157 * Set thread affinity.
159 * \param thread Thread
166 util_set_thread_affinity(thrd_t thread,
177 if (pthread_getaffinity_np(thread, sizeof(cpuset), &cpuset) != 0)
204 return pthread_setaffinity_np(thread, sizeof(cpuset), &cpuset) == 0;
213 m = SetThreadAffinityMask(thread, m);
242 /* The GetCurrentThreadId() handle is only valid within the current thread. */
256 /* Return the time of a thread's CPU time clock. */
258 util_thread_get_time_nano(thrd_t thread)
264 pthread_getcpuclockid(thread, &cid);
272 /* Return the time of the current thread's CPU time clock. */
280 /* The GetCurrentThreadId() handle is only valid within the current thread. */
288 static inline bool u_thread_is_self(thrd_t thread)
291 return pthread_equal(pthread_self(), thread);
391 * side-step this mess and use Windows thread primitives directly here.