The open source OpenXR runtime
at prediction-2 20 lines 371 B view raw
1// Copyright 2022, Collabora, Ltd. 2// SPDX-License-Identifier: BSL-1.0 3/*! 4 * @file 5 * @brief C++ wrappers for workers. 6 * @author Jakob Bornecrantz <jakob@collabora.com> 7 * 8 * @ingroup aux_util 9 */ 10 11#include "util/u_worker.hpp" 12 13 14void 15xrt::auxiliary::util::TaskCollection::cCallback(void *data_ptr) 16{ 17 auto &f = *static_cast<Functor *>(data_ptr); 18 f(); 19 f = nullptr; 20}