mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-07-21 23:12:01 -07:00
impl shared thread pool mode
This commit is contained in:
+7
-2
@@ -3189,8 +3189,13 @@ lnk_run(int argc, char **argv)
|
||||
|
||||
LNK_Config *config = lnk_build_config(scratch.arena, argc, argv);
|
||||
|
||||
TP_Context *tp = tp_alloc(scratch.arena, config->worker_count);
|
||||
TP_Arena *tp_arena = tp_arena_alloc(tp);
|
||||
TP_Context *tp;
|
||||
if (config->shared_thread_pool == LNK_SwitchState_Yes) {
|
||||
tp = tp_alloc_shared(scratch.arena, config->worker_count, config->shared_thread_pool_mutex_name);
|
||||
} else {
|
||||
tp = tp_alloc(scratch.arena, config->worker_count);
|
||||
}
|
||||
TP_Arena *tp_arena = tp_arena_alloc(tp);
|
||||
|
||||
#if PROFILE_TELEMETRY
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user