[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 15:45:32 CST 2009


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





--- Comment #9 from Juan Lang <juan_lang at yahoo.com>  2009-11-13 15:45:32 ---
(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.)

-- 
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