1 parent ebb0e8b commit 37544a1Copy full SHA for 37544a1
1 file changed
examples/ICRA2026/eval_manipulator.cpp
@@ -1818,15 +1818,18 @@ int main() {
1818
eval_function_UR5e();
1819
});
1820
1821
- // Pin the thread immediately after creation
+#ifdef _WIN32
1822
+ // Only available on Windows — pin threads to P-cores
1823
if (t < (int) cores.size()) {
1824
SetThreadGroupAffinity(
1825
(HANDLE) workers.back().native_handle(),
1826
&cores[t],
1827
nullptr);
1828
}
1829
+#endif
1830
1831
1832
+
1833
for (auto& th: workers)
1834
th.join();
1835
0 commit comments