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