http://bugs.winehq.org/show_bug.cgi?id=19982
--- Comment #21 from Juan Lang juan_lang@yahoo.com 2009-09-30 11:11:36 --- (In reply to comment #19)
I have applied these pataches and my ART test program shows a logic error. If the Process Affinity is 0x01 setting a Thread afffinity of 0x02 does not fail and it should do.
Thanks, you're right, I missed that in my tests and implementation.
Further when I tested with SIV the returned APICs on SIV startup vary from run-to-run and the [Test APIC] page detects incorrect APICs being returned meaning that the threads are still not running on the appropiate processor.
Alexandre committed a variant of my patches today. Would you mind retrying with today's git?
If it still doesn't work for you, please check whether HAVE_SCHED_SETAFFINITY is defined in include/config.h. If it isn't defined, configure isn't finding the function on your system. If it is, then the Linux call isn't doing what it's supposed to (and it's a Linux bug rather than a Wine one.)