add -m coremask option

This commit is contained in:
Ryo Nakamura
2022-11-15 19:57:53 +09:00
parent 0421172778
commit a69115a4dc
4 changed files with 124 additions and 8 deletions

View File

@@ -1,6 +1,9 @@
#ifndef _PLATFORM_H_
#define _PLATFORM_H_
#include <pthread.h>
int nr_cpus();
int set_thread_affinity(pthread_t tid, int core);
#endif /* _PLATFORM_H_ */