Implement thread_ctrl::emergency_exit()
Replace exception throws with this.
This commit is contained in:
@@ -225,6 +225,9 @@ public:
|
||||
_wait_for(-1, true);
|
||||
}
|
||||
|
||||
// Exit.
|
||||
[[noreturn]] static void emergency_exit(std::string_view reason);
|
||||
|
||||
// Get current thread (may be nullptr)
|
||||
static thread_base* get_current()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user