LeviLamina
Loading...
Searching...
No Matches
ThreadUtil.h
1
#pragma once
2
3
#include "mc/_HeaderOutputPredefine.h"
4
5
// auto generated forward declare list
6
// clang-format off
7
namespace
Bedrock::Threading {
class
OSThreadPriority
; }
8
// clang-format on
9
10
namespace
Bedrock::Threading {
11
12
class
ThreadUtil
{
13
public
:
14
// static functions
15
// NOLINTBEGIN
16
MCAPI
static
void
setCoreAffinity(
void
*
const
& nativeHandle, uint64 desiredCoreMask);
17
18
#ifdef LL_PLAT_C
19
MCAPI
static
void
setCoreAffinity(
void
*
const
& nativeHandle,
int
idealCore, uint64 desiredCoreMask);
20
#endif
21
22
MCAPI
static
void
setCurrentThreadCoreAffinity(
int
idealCore, uint64 desiredCoreMask);
23
24
MCAPI
static
void
setCurrentThreadPriority(
::Bedrock::Threading::OSThreadPriority
const
& pri);
25
26
MCAPI
static
void
setThreadPriority(
void
*
const
& nativeHandle,
::Bedrock::Threading::OSThreadPriority
const
& pri);
27
// NOLINTEND
28
};
29
30
}
// namespace Bedrock::Threading
Bedrock::Threading::OSThreadPriority
Definition
OSThreadPriority.h:7
Bedrock::Threading::ThreadUtil
Definition
ThreadUtil.h:12
src
mc
platform
threading
ThreadUtil.h
Generated on
for LeviLamina by
1.16.1