Monado OpenXR Runtime
u_linux.h
Go to the documentation of this file.
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
35
36
37#ifdef __cplusplus
38}
39#endif
u_logging_level
Logging level enum.
Definition: u_logging.h:40
void u_linux_try_to_set_realtime_priority_on_thread(enum u_logging_level log_level, const char *name)
Try to set realtime priority on this thread.
Definition: u_linux.c:90
Basic logging functionality.
Header holding common defines.
A minimal way to include Windows.h.