diff -ru a/C/Threads.c b/C/Threads.c
--- a/C/Threads.c 2021-12-21 08:00:00.000000000 -0500
+++ b/C/Threads.c 2022-03-05 11:07:47.203504536 -0500
@@ -265,7 +265,7 @@
*/
// ret2 =
- pthread_attr_setaffinity_np(&attr, sizeof(*cpuSet), cpuSet);
+ //pthread_attr_setaffinity_np(&attr, sizeof(*cpuSet), cpuSet);
// if (ret2) ret = ret2;
#endif
}
@@ -275,14 +275,12 @@
if (!ret)
{
p->_created = 1;
- /*
if (cpuSet)
{
// ret2 =
pthread_setaffinity_np(p->_tid, sizeof(*cpuSet), cpuSet);
// if (ret2) ret = ret2;
}
- */
}
}
// ret2 =
diff -ru a/C/Threads.h b/C/Threads.h
--- a/C/Threads.h 2021-12-21 08:00:00.000000000 -0500
+++ b/C/Threads.h 2022-03-05 11:07:47.203504536 -0500
@@ -29,6 +29,7 @@
#endif
#include <pthread.h>
+#include <sched.h>
#endif