remove double init and equip of thread contexts

This commit is contained in:
Nikita Smith
2025-06-01 18:05:19 -07:00
committed by Ryan Fleury
parent aae3874521
commit f055267e59
-2
View File
@@ -31,7 +31,6 @@ tp_run_tasks(TP_Context *pool, TP_Worker *worker)
internal void
tp_worker_main(void *raw_worker)
{
TCTX tctx_; tctx_init_and_equip(&tctx_);
TP_Worker *worker = raw_worker;
TP_Context *pool = worker->pool;
for (; pool->is_live; ) {
@@ -44,7 +43,6 @@ tp_worker_main(void *raw_worker)
internal void
tp_worker_main_shared(void *raw_worker)
{
TCTX tctx_; tctx_init_and_equip(&tctx_);
TP_Worker *worker = raw_worker;
TP_Context *pool = worker->pool;
for (; pool->is_live; ) {