Remove need for and use of ioprio header (#1535)
Some checks are pending
CodeQL / Analyze (push) Waiting to run
mkdocs / deploy (push) Waiting to run

This commit is contained in:
trapexit 2025-09-28 01:01:26 -04:00 • committed by GitHub
parent 569a151da2
commit 7a9c3b7eb2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,7 +1,6 @@
#include "ioprio.hpp"
#ifdef __linux__
# include <linux/ioprio.h>
# include <sys/syscall.h>
# include <unistd.h>
# include <errno.h>
@ -9,6 +8,11 @@
#warning "ioprio not supported on this platform"
#endif
enum
{
IOPRIO_WHO_PROCESS = 1
};
thread_local int ioprio::SetFrom::thread_prio = -1;
bool _enabled = false;