Page 1 of 1

Thread Affinity

Posted: Sun May 07, 2006 6:57 am
by WytRaven
Fred:

In addition to the ThreadPriority() command, which we already have, can you also provide a wrapper around the SetThreadAffinityMask() API?

Say "ThreadAffinity(Thread, Mask)"

In the mean time, is there a way to get the thread handle from the PB Thread ID so I can directly use the aforementioned API with PB threads?

Posted: Sun May 07, 2006 8:12 am
by Trond
If I remember correctly PB's thread number IS the OS thread number.

Posted: Sun May 07, 2006 11:46 am
by freak
Trond wrote:If I remember correctly PB's thread number IS the OS thread number.
correct.