AuroraRuntime/Include/Aurora/Threading/SpinTime.hpp

24 lines
608 B
C++

/***
Copyright (C) 2023 J Reece Wilson (a/k/a "Reece"). All rights reserved.
File: SpinTime.hpp
Date: 2023-08-19
Author: Reece
***/
#pragma once
namespace Aurora
{
struct ThreadingConfig;
}
namespace Aurora::Threading
{
AUKN_SYM void SetSpinCountTimeout(AuUInt32 uTimeout);
AUKN_SYM AuUInt32 GetSpinCountTimeout();
AUKN_SYM void SetThreadLocalAdditionalSpinCountTimeout(AuUInt32 uTimeout);
AUKN_SYM AuUInt32 GetTotalSpinCountTime();
AUKN_SYM const ThreadingConfig *GetThreadingConfig();
AUKN_SYM void SetThreadingConfig(const ThreadingConfig *pUpdateConfig);
}