monado/src/xrt/auxiliary/util/u_worker.cpp
2022-03-11 15:29:16 +00:00

21 lines
371 B
C++

// Copyright 2022, Collabora, Ltd.
// SPDX-License-Identifier: BSL-1.0
/*!
* @file
* @brief C++ wrappers for workers.
* @author Jakob Bornecrantz <jakob@collabora.com>
*
* @ingroup aux_util
*/
#include "util/u_worker.hpp"
void
xrt::auxiliary::util::TaskCollection::cCallback(void *data_ptr)
{
auto &f = *static_cast<Functor *>(data_ptr);
f();
f = nullptr;
}