linux - ThreadAffinity in windows -


currently porting linux application windows, need set thread affinity.

currently linux method is:

pthread_setaffinity_np(curthread->threadid, sizeof(cpu_set_t), &curthread->coremask);

i need replace equivalent windows call.

i have found "setthreadaffinitymask" method equivalent windows call. can use this? if yes how place arguments call?

can me on this.

possibly useful functions:

read multiple processors , processor groups on msdn starter.


Comments

Popular posts from this blog

Line ending issue with Mercurial or Visual Studio -

fatal error - Android RunTimeError: Java.lang.RunTimeException: Unable to Instantiate activity -

php - Retrieving data submitted with Yii's CActiveForm -