mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-21 15:36:31 -05:00
20 lines
276 B
C++
20 lines
276 B
C++
#pragma once
|
|
|
|
#include <sys/types.h>
|
|
|
|
|
|
namespace ioprio
|
|
{
|
|
void enable(const bool);
|
|
bool enabled();
|
|
|
|
int get(const int who);
|
|
int set(const int who, const int ioprio);
|
|
|
|
struct SetFrom
|
|
{
|
|
static thread_local int thread_prio;
|
|
|
|
SetFrom(const pid_t pid);
|
|
};
|
|
};
|