5 for (int i
= 0; i
< CPU_SETSIZE
; ++i
) {
9 pthread_t self
= pthread_self();
11 ret
= pthread_getaffinity_np(self
, sizeof(set
), &set
);
12 if (ret
!= 0) return ret
;
13 ret
= pthread_setaffinity_np(self
, sizeof(set
), &set
);
14 if (ret
!= 0) return ret
;