Lines Matching defs:thread
27 * In addition to the basic thread abstraction (which is native pthreads on
53 pthread_t* thread,
60 *thread = CreateThread(nullptr, 0, func, thread_arg, 0, nullptr);
63 if (*thread == NULL)
72 * @brief Manually set CPU group and thread affinity.
79 pthread_t thread,
82 // Skip thread assignment for hardware with a single CPU group
94 // Determine which core group and core in the group to use for this thread
113 SetThreadGroupAffinity(thread, &affinity, nullptr);
120 pthread_t thread,
124 WaitForSingleObject(thread, INFINITE);
171 * @brief Worker thread helper payload for launch_threads.
175 /** @brief The native thread handle. */
177 /** @brief The total number of threads in the thread pool. */
179 /** @brief The thread index in the thread pool. */
181 /** @brief The user thread function to execute. */
183 /** @brief The user thread payload. */
188 * @brief Helper function to translate thread entry points.
190 * Convert a (void*) thread entry to an (int, void*) thread entry, where the
191 * integer contains the thread ID in the thread pool.
193 * @param p The thread launch helper payload.
210 // Directly execute single threaded workloads on this thread
238 // Windows needs explicit thread assignment to handle large core count systems
254 printf("WARNING: %s using %d thread%s due to thread creation error\n\n",
266 // Else fall back to using this thread