The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

u/worker: Allow setting the number of workers to the number of threads

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2619>

authored by

Jakob Bornecrantz and committed by
Marge Bot
413e188d 2fbb6bce

+3 -2
+3 -2
src/xrt/auxiliary/util/u_worker.c
··· 1 1 // Copyright 2022, Collabora, Ltd. 2 + // Copyright 2024-2025, NVIDIA CORPORATION. 2 3 // SPDX-License-Identifier: BSL-1.0 3 4 /*! 4 5 * @file ··· 401 402 XRT_TRACE_MARKER(); 402 403 int ret; 403 404 404 - assert(starting_worker_count < thread_count); 405 - if (starting_worker_count >= thread_count) { 405 + assert(starting_worker_count <= thread_count); 406 + if (starting_worker_count > thread_count) { 406 407 return NULL; 407 408 } 408 409