Commit 4ff4ba39 authored by Thomas Kho's avatar Thomas Kho Committed by Alexandre Julliard

server: Add new threads to end of thread_list.

parent dd000074
...@@ -534,7 +534,7 @@ static void process_killed( struct process *process ) ...@@ -534,7 +534,7 @@ static void process_killed( struct process *process )
/* add a thread to a process running threads list */ /* add a thread to a process running threads list */
void add_process_thread( struct process *process, struct thread *thread ) void add_process_thread( struct process *process, struct thread *thread )
{ {
list_add_head( &process->thread_list, &thread->proc_entry ); list_add_tail( &process->thread_list, &thread->proc_entry );
if (!process->running_threads++) running_processes++; if (!process->running_threads++) running_processes++;
grab_object( thread ); grab_object( thread );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment