summaryrefslogtreecommitdiffstats
path: root/include/framework/DynamicExtension.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/framework/DynamicExtension.h')
-rw-r--r--include/framework/DynamicExtension.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/framework/DynamicExtension.h b/include/framework/DynamicExtension.h
index 3e1ce50..44ad454 100644
--- a/include/framework/DynamicExtension.h
+++ b/include/framework/DynamicExtension.h
@@ -685,6 +685,7 @@ private:
return processed_records;
}
+#ifdef _GNU_SOURCE
void SetThreadAffinity() {
int core = m_next_core.fetch_add(1) % m_core_cnt;
cpu_set_t mask;
@@ -707,6 +708,11 @@ private:
CPU_SET(core, &mask);
::sched_setaffinity(0, sizeof(mask), &mask);
}
+#else
+ void SetThreadAffinity() {
+
+ }
+#endif
void end_job(_Epoch *epoch) {