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
Post a Comment