23 lines
600 B
C++
23 lines
600 B
C++
#include "Base_Thread_Context.h"
|
|
|
|
// C_LINKAGE thread_static TCTX* tctx_thread_local;
|
|
thread_static Thread_Context* thread_local_context;
|
|
|
|
// Start from w32_entry_point_caller ->
|
|
// see main_thread_base_entry_point
|
|
// //- rjf: set up thread context
|
|
// TCTX *tctx = tctx_alloc();
|
|
// tctx_select(tctx);
|
|
// See: tctx_alloc(void)
|
|
|
|
// Let's do arenas first.
|
|
|
|
|
|
void init_thread_context(Thread_Context* tctx) {
|
|
// Should be Arena-bootstrapped with Temp Arena maybe?
|
|
// #TODO - call from entry point.
|
|
}
|
|
|
|
Thread_Context* get_thread_context() {
|
|
return (Thread_Context*)thread_local_context;
|
|
} |