dispenso 1.4.1
A library for task parallelism
Loading...
Searching...
No Matches
priority.h
Go to the documentation of this file.
1/*
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7
21#pragma once
22
23#include <dispenso/platform.h>
24
25namespace dispenso {
26
30enum class ThreadPriority { kLow, kNormal, kHigh, kRealtime };
31
40DISPENSO_DLL_ACCESS ThreadPriority getCurrentThreadPriority();
41
49DISPENSO_DLL_ACCESS bool setCurrentThreadPriority(ThreadPriority prio);
50
51} // namespace dispenso
ThreadPriority
Definition priority.h:30