thread_state.cpp 352 Bytes
Newer Older
1 2
#include "pls/internal/scheduling/thread_state.h"

3
namespace pls::internal::scheduling {
4

5
thread_local thread_state *my_thread_state{nullptr};
6
thread_local bool thread_state::is_scheduler_active_{false};
7 8 9

thread_state &thread_state::get() { return *my_thread_state; }
void thread_state::set(thread_state *new_state) { my_thread_state = new_state; }
10 11

}