mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-06 13:58:40 +00:00
remove double init and equip of thread contexts
This commit is contained in:
committed by
Ryan Fleury
parent
aae3874521
commit
f055267e59
@@ -31,7 +31,6 @@ tp_run_tasks(TP_Context *pool, TP_Worker *worker)
|
|||||||
internal void
|
internal void
|
||||||
tp_worker_main(void *raw_worker)
|
tp_worker_main(void *raw_worker)
|
||||||
{
|
{
|
||||||
TCTX tctx_; tctx_init_and_equip(&tctx_);
|
|
||||||
TP_Worker *worker = raw_worker;
|
TP_Worker *worker = raw_worker;
|
||||||
TP_Context *pool = worker->pool;
|
TP_Context *pool = worker->pool;
|
||||||
for (; pool->is_live; ) {
|
for (; pool->is_live; ) {
|
||||||
@@ -44,7 +43,6 @@ tp_worker_main(void *raw_worker)
|
|||||||
internal void
|
internal void
|
||||||
tp_worker_main_shared(void *raw_worker)
|
tp_worker_main_shared(void *raw_worker)
|
||||||
{
|
{
|
||||||
TCTX tctx_; tctx_init_and_equip(&tctx_);
|
|
||||||
TP_Worker *worker = raw_worker;
|
TP_Worker *worker = raw_worker;
|
||||||
TP_Context *pool = worker->pool;
|
TP_Context *pool = worker->pool;
|
||||||
for (; pool->is_live; ) {
|
for (; pool->is_live; ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user