1
0
Fork 0
mirror of https://github.com/yshui/picom.git synced 2025-04-07 17:44:04 -04:00
picom/src/rtkit.h
Yuxuan Shui 7bbf316a7d
core: support setting realtime priority using rtkit
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2024-02-16 19:58:38 +00:00

20 lines
367 B
C

// SPDX-License-Identifier: MPL-2.0
// Copyright (c) Yuxuan Shui <yshuiv7@gmail.com>
#pragma once
#include <stdbool.h>
#include <sys/types.h>
#ifdef CONFIG_DBUS
#include <dbus/dbus.h>
bool rtkit_make_realtime(long thread, int priority);
#else
static inline bool rtkit_make_realtime(pid_t thread attr_unused, int priority attr_unused) {
return false;
}
#endif