[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    Re: server(4/5): Setting a process's affinity sets all of its
From:       Alexandre Julliard <julliard () winehq ! org>
Date:       2009-09-29 13:27:10
Message-ID: 877hvh6fv5.fsf () wine ! dyndns ! org
[Download RAW message or body]

Juan Lang <juan.lang@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@winehq.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic