The open source OpenXR runtime
at main 39 lines 868 B view raw
1// Copyright 2023, Collabora, Ltd. 2// SPDX-License-Identifier: BSL-1.0 3/*! 4 * @file 5 * @brief Various helpers for doing Linux specific things. 6 * @author Jakob Bornecrantz <jakob@collabora.com> 7 * 8 * @ingroup aux_util 9 */ 10 11#pragma once 12 13#include "xrt/xrt_compiler.h" 14#include "xrt/xrt_windows.h" 15#include "util/u_logging.h" 16 17 18#ifdef __cplusplus 19extern "C" { 20#endif 21 22 23/*! 24 * Try to set realtime priority on this thread. Passing in log_level to control 25 * how chatty this function is, the name is to make the logging pretty, can be 26 * NULL and the code will try to figure out the name itself. 27 * 28 * @param name Thread name to be used in logging. 29 * @param log_level Logging level to control chattiness. 30 * 31 * @ingroup aux_util 32 */ 33void 34u_linux_try_to_set_realtime_priority_on_thread(enum u_logging_level log_level, const char *name); 35 36 37#ifdef __cplusplus 38} 39#endif