标签: pthreads
我需要控制进程中所有pthread的CPU关联。某些pthread由第三方库创建。有没有办法枚举进程中所有现有pthread的pthread_t,以便我可以在它们上调用pthread_setaffinity_np()?