summaryrefslogtreecommitdiff
path: root/src/platform.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/platform.h')
-rw-r--r--src/platform.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/platform.h b/src/platform.h
index b93142b..7fddfc4 100644
--- a/src/platform.h
+++ b/src/platform.h
@@ -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_ */