mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-05 05:18:40 +00:00
set up base-layer tctx info for thread wavefront metadata
This commit is contained in:
@@ -123,10 +123,7 @@ os_lnx_thread_entry_point(void *ptr)
|
||||
OS_LNX_Entity *entity = (OS_LNX_Entity *)ptr;
|
||||
OS_ThreadFunctionType *func = entity->thread.func;
|
||||
void *thread_ptr = entity->thread.ptr;
|
||||
TCTX tctx_;
|
||||
tctx_init_and_equip(&tctx_);
|
||||
func(thread_ptr);
|
||||
tctx_release();
|
||||
supplement_thread_base_entry_point(func, thread_ptr);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -1302,8 +1299,8 @@ main(int argc, char **argv)
|
||||
}
|
||||
|
||||
//- rjf: set up thread context
|
||||
local_persist TCTX tctx;
|
||||
tctx_init_and_equip(&tctx);
|
||||
TCTX *tctx = tctx_alloc();
|
||||
tctx_select(tctx);
|
||||
|
||||
//- rjf: set up dynamically allocated state
|
||||
os_lnx_state.arena = arena_alloc();
|
||||
|
||||
@@ -145,10 +145,7 @@ os_w32_thread_entry_point(void *ptr)
|
||||
OS_W32_Entity *entity = (OS_W32_Entity *)ptr;
|
||||
OS_ThreadFunctionType *func = entity->thread.func;
|
||||
void *thread_ptr = entity->thread.ptr;
|
||||
TCTX tctx_;
|
||||
tctx_init_and_equip(&tctx_);
|
||||
func(thread_ptr);
|
||||
tctx_release();
|
||||
supplement_thread_base_entry_point(func, thread_ptr);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -1776,8 +1773,8 @@ w32_entry_point_caller(int argc, WCHAR **wargv)
|
||||
}
|
||||
|
||||
//- rjf: set up thread context
|
||||
local_persist TCTX tctx;
|
||||
tctx_init_and_equip(&tctx);
|
||||
TCTX *tctx = tctx_alloc();
|
||||
tctx_select(tctx);
|
||||
|
||||
//- rjf: set up dynamically-alloc'd state
|
||||
Arena *arena = arena_alloc();
|
||||
|
||||
Reference in New Issue
Block a user