New threads where not placed in head of linked list
This commit is contained in:
parent
978f9335f0
commit
b6d0c796be
|
@ -343,7 +343,6 @@ static inline thread_ctx_t* create_thread_ctx(struct gengetopt_args_info* params
|
||||||
thread_ctx->next = s_last_thread;
|
thread_ctx->next = s_last_thread;
|
||||||
if (s_last_thread)
|
if (s_last_thread)
|
||||||
s_last_thread->prev = thread_ctx;
|
s_last_thread->prev = thread_ctx;
|
||||||
else
|
|
||||||
s_last_thread = thread_ctx;
|
s_last_thread = thread_ctx;
|
||||||
|
|
||||||
return thread_ctx;
|
return thread_ctx;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user