mergerfs/src/ioprio.hpp
trapexit 46f85c0f6d
Some checks are pending
CodeQL / Analyze (push) Waiting to run
mkdocs / deploy (push) Waiting to run
Misc fixes, mostly for FreeBSD (#1536)
2025-09-28 23:17:51 -05:00

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);
};
};