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::promise< Tp > Promise
std::recursive_mutex RecursiveMutex
std::thread::native_handle_type NativeThread
MutexTp & TypeMutex(const unsigned int &_n=0)
std::shared_future< Tp > SharedFuture
std::condition_variable Condition