server(4/5): Setting a process's affinity sets all of its threads' affinities too
Alexandre Julliard
julliard at winehq.org
Tue Sep 29 08:27:10 CDT 2009
Juan Lang <juan.lang at gmail.com> writes:
> +static void set_process_affinity( struct process *process, affinity_t affinity )
> +{
> + struct thread *thread;
> +
> + process->affinity = affinity;
> +
> + suspend_process( process );
> + LIST_FOR_EACH_ENTRY( thread, &process->thread_list, struct thread, proc_entry )
> + {
> + set_thread_affinity( thread, affinity );
> + }
> + resume_process( process );
Why are you suspending the process?
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list