Browse Source

Remove need for and use of ioprio header (#1535)

pull/1536/head
trapexit 1 week ago
committed by GitHub
parent
commit
7a9c3b7eb2
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 6
      src/ioprio.cpp

6
src/ioprio.cpp

@ -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;

Loading…
Cancel
Save