dispenso
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
8#pragma once
9
10#include <dispenso/platform.h>
11
24namespace dispenso {
25
29enum class ThreadPriority { kLow, kNormal, kHigh, kRealtime };
30
39DISPENSO_DLL_ACCESS ThreadPriority getCurrentThreadPriority();
40
48DISPENSO_DLL_ACCESS bool setCurrentThreadPriority(ThreadPriority prio);
49
50} // namespace dispenso
ThreadPriority
Definition priority.h:29