37using Thread = std::thread;
38using NativeThread = std::thread::native_handle_type;
40using Pid_t = std::thread::id;
43using Condition = std::condition_variable;
46using ThreadId = Thread::id;
50using Future = std::future<Tp>;
52using SharedFuture = std::shared_future<Tp>;
54using Promise = std::promise<Tp>;
57using Mutex = std::mutex;
58using RecursiveMutex = std::recursive_mutex;
63using namespace std::this_thread;
72template <
typename Tp,
typename MutexTp = Mutex,
size_t N = 4>
74TypeMutex(
const unsigned int& _n = 0)
76 static std::array<MutexTp, N> _mutex_array{};
77 return _mutex_array[_n %
N];
Backports of C++ language features for use with C++11 compilers.