mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +00:00
c/multi: Try to set realtime priority on main thread
This commit is contained in:
parent
cd10b487e2
commit
0d6d42041f
|
@ -8,6 +8,8 @@
|
||||||
* @ingroup comp_multi
|
* @ingroup comp_multi
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "xrt/xrt_config_os.h"
|
||||||
|
|
||||||
#include "os/os_time.h"
|
#include "os/os_time.h"
|
||||||
#include "os/os_threading.h"
|
#include "os/os_threading.h"
|
||||||
|
|
||||||
|
@ -19,6 +21,10 @@
|
||||||
#include "util/u_trace_marker.h"
|
#include "util/u_trace_marker.h"
|
||||||
#include "util/u_distortion_mesh.h"
|
#include "util/u_distortion_mesh.h"
|
||||||
|
|
||||||
|
#ifdef XRT_OS_LINUX
|
||||||
|
#include "util/u_linux.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "multi/comp_multi_private.h"
|
#include "multi/comp_multi_private.h"
|
||||||
#include "multi/comp_multi_interface.h"
|
#include "multi/comp_multi_interface.h"
|
||||||
|
|
||||||
|
@ -422,6 +428,11 @@ multi_main_loop(struct multi_system_compositor *msc)
|
||||||
U_TRACE_SET_THREAD_NAME("Multi Client Module");
|
U_TRACE_SET_THREAD_NAME("Multi Client Module");
|
||||||
os_thread_helper_name(&msc->oth, "Multi Client Module");
|
os_thread_helper_name(&msc->oth, "Multi Client Module");
|
||||||
|
|
||||||
|
#ifdef XRT_OS_LINUX
|
||||||
|
// Try to raise priority of this thread.
|
||||||
|
u_linux_try_to_set_realtime_priority_on_thread(U_LOGGING_INFO, "Multi Client Module");
|
||||||
|
#endif
|
||||||
|
|
||||||
struct xrt_compositor *xc = &msc->xcn->base;
|
struct xrt_compositor *xc = &msc->xcn->base;
|
||||||
|
|
||||||
// For wait frame.
|
// For wait frame.
|
||||||
|
|
Loading…
Reference in a new issue