The open source OpenXR runtime
0
fork

Configure Feed

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

u/worker: Add direct group push in C++ interface

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

authored by

Jakob Bornecrantz and committed by
Marge Bot
5266d0ac 9bd3555a

+12
+12
src/xrt/auxiliary/util/u_worker.hpp
··· 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 ··· 103 104 ~SharedThreadGroup() 104 105 { 105 106 u_worker_group_reference(&mGroup, nullptr); 107 + } 108 + 109 + /*! 110 + * In-general it's recommended to use the TaskCollection helper, 111 + * but some use cases requires direct access to the push function, 112 + * so it's provided here. 113 + */ 114 + void 115 + push(u_worker_group_func_t f, void *data) 116 + { 117 + u_worker_group_push(mGroup, f, data); 106 118 } 107 119 108 120 friend TaskCollection;