11 template <
class TOutputStream>
38 stream <<
"<unknown>";
44 template <
class Fn,
class... Args>
47 return std::thread([fn = fn, args...]()
50 ExceptionsHandler::SetupThread();
53 fn(std::move(args)...);
static std::thread Start(Fn &&fn, Args &&... args)
Start a new thread with an exception handler registered.
C++ Common project definitions.
std::ostream & operator<<(std::ostream &os, const uint128_t &value)
ThreadPriority
Thread priorities.
@ NORMAL
Normal thread priority.
@ LOW
Low thread priority.
@ REALTIME
Realtime thread priority.
@ LOWEST
Lowest thread priority.
@ IDLE
Idle thread priority.
@ HIGH
High thread priority.
@ HIGHEST
Highest thread priority.