trapexit
1 week ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
5 additions and
1 deletions
-
src/ioprio.cpp
|
@ -1,7 +1,6 @@ |
|
|
#include "ioprio.hpp"
|
|
|
#include "ioprio.hpp"
|
|
|
|
|
|
|
|
|
#ifdef __linux__
|
|
|
#ifdef __linux__
|
|
|
# include <linux/ioprio.h>
|
|
|
|
|
|
# include <sys/syscall.h>
|
|
|
# include <sys/syscall.h>
|
|
|
# include <unistd.h>
|
|
|
# include <unistd.h>
|
|
|
# include <errno.h>
|
|
|
# include <errno.h>
|
|
@ -9,6 +8,11 @@ |
|
|
#warning "ioprio not supported on this platform"
|
|
|
#warning "ioprio not supported on this platform"
|
|
|
#endif
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
enum |
|
|
|
|
|
{ |
|
|
|
|
|
IOPRIO_WHO_PROCESS = 1 |
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
thread_local int ioprio::SetFrom::thread_prio = -1; |
|
|
thread_local int ioprio::SetFrom::thread_prio = -1; |
|
|
bool _enabled = false; |
|
|
bool _enabled = false; |
|
|
|
|
|
|
|
|