Prevent cpu_set_t overflow even if there are more than 63 cores
Do not use pthread_attr_setaffinity_np if sched_getcpu() exceeds CPU_SETSIZE. (Using CPU_ALLOC() would be more appropriate.)
pthread_attr_setaffinity_np
sched_getcpu()
CPU_SETSIZE
CPU_ALLOC()
Prevent cpu_set_t overflow even if there are more than 63 cores
Do not use
pthread_attr_setaffinity_npifsched_getcpu()exceedsCPU_SETSIZE. (UsingCPU_ALLOC()would be more appropriate.)