picom/src/rtkit.h

21 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