Lines Matching defs:thread
41 thrd_t thread;
49 ret = thrd_create( &thread, routine, param );
53 ret = thrd_create( &thread, routine, param );
58 return thread;
75 * cache. Inter-thread communication such as locks and atomics between modules
79 * \param thread thread
84 util_pin_thread_to_L3(thrd_t thread, unsigned L3_index, unsigned cores_per_L3)
92 pthread_setaffinity_np(thread, sizeof(cpuset), &cpuset);
97 * Return the index of L3 that the thread is pinned to. If the thread is
100 * \param thread thread
104 util_get_L3_for_pinned_thread(thrd_t thread, unsigned cores_per_L3)
109 if (pthread_getaffinity_np(thread, sizeof(cpuset), &cpuset) == 0) {
134 /* Return the time of a thread's CPU time clock. */
136 u_thread_get_time_nano(thrd_t thread)
142 pthread_getcpuclockid(thread, &cid);
150 static inline bool u_thread_is_self(thrd_t thread)
155 return pthread_equal(pthread_self(), thread);