http://bugs.winehq.org/show_bug.cgi?id=20602
--- Comment #9 from Juan Lang juan_lang@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.)