Thread Affinity

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
WytRaven
New User
New User
Posts: 5
Joined: Tue May 25, 2004 7:01 am

Thread Affinity

Post 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?
All your code are belong to us
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

If I remember correctly PB's thread number IS the OS thread number.
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

Trond wrote:If I remember correctly PB's thread number IS the OS thread number.
correct.
quidquid Latine dictum sit altum videtur
Post Reply