[Bug 20602] thread/cpu affinity not correct with multi core enabled source engine games

wine-bugs at winehq.org wine-bugs at winehq.org
Fri Nov 13 16:03:52 CST 2009


http://bugs.winehq.org/show_bug.cgi?id=20602





--- Comment #10 from Alexandre Julliard <julliard at winehq.org>  2009-11-13 16:03:52 ---
(In reply to comment #9)
> (In reply to comment #8)
> > No, the Posix API only works inside the process, from the wineserver using the
> > syscall is correct. There must be some other problem here.
> 
> Indeed, yet when the wineserver makes the syscall, it only appears to take
> effect on the main thread, not on other threads.  I agree that there must be
> some other problem, and I only surmised that the Posix API was interfering with
> it.  C.f. the man page of sched_setaffinity:
> "If you are using the POSIX threads API, then use pthread_setaffinity_np(3)
> instead of sched_setaffinity()."
> That was just a guess, but it's clearly not working the way we're doing it now
> (except for the main thread.)

That's because your patch uses unix_pid instead of unix_tid.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list