63using namespace std::this_thread;
72template <
typename Tp,
typename MutexTp = Mutex,
size_t N = 4>
76 static std::array<MutexTp, N> _mutex_array{};
77 return _mutex_array[_n %
N];
unsigned GetNumberOfCores()
unsigned GetNumberOfPhysicalCpus()
bool SetPinAffinity(int idx)
bool SetThreadPriority(int _v)
void SetThreadId(int aNewValue)
std::thread::native_handle_type NativeThread
std::condition_variable Condition
std::promise< Tp > Promise
MutexTp & TypeMutex(const unsigned int &_n=0)
std::recursive_mutex RecursiveMutex
std::shared_future< Tp > SharedFuture