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

3
namespace pls::internal::scheduling {
4

5 6 7 8
thread_local thread_state *my_thread_state{nullptr};

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

}