2023-02-16 14:25:12 +00:00
|
|
|
--- a/C/Threads.c
|
|
|
|
+++ b/C/Threads.c
|
2023-07-19 13:45:10 +00:00
|
|
|
@@ -265,7 +265,7 @@ WRes Thread_Create_With_CpuSet(CThread *
|
2023-02-16 14:25:12 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
// ret2 =
|
|
|
|
- pthread_attr_setaffinity_np(&attr, sizeof(*cpuSet), cpuSet);
|
|
|
|
+ //pthread_attr_setaffinity_np(&attr, sizeof(*cpuSet), cpuSet);
|
|
|
|
// if (ret2) ret = ret2;
|
2024-07-11 10:33:55 +00:00
|
|
|
#endif
|
2023-02-16 14:25:12 +00:00
|
|
|
}
|
2023-07-19 13:45:10 +00:00
|
|
|
@@ -275,14 +275,12 @@ WRes Thread_Create_With_CpuSet(CThread *
|
2023-02-16 14:25:12 +00:00
|
|
|
if (!ret)
|
|
|
|
{
|
|
|
|
p->_created = 1;
|
|
|
|
- /*
|
|
|
|
if (cpuSet)
|
|
|
|
{
|
|
|
|
// ret2 =
|
|
|
|
pthread_setaffinity_np(p->_tid, sizeof(*cpuSet), cpuSet);
|
|
|
|
// if (ret2) ret = ret2;
|
|
|
|
}
|
|
|
|
- */
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// ret2 =
|
|
|
|
--- a/C/Threads.h
|
|
|
|
+++ b/C/Threads.h
|
2024-07-11 10:33:55 +00:00
|
|
|
@@ -29,6 +29,7 @@ Z7_DIAGNOSTIC_IGNORE_END_RESERVED_MACRO_
|
2023-02-16 14:25:12 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <pthread.h>
|
|
|
|
+#include <sched.h>
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|