Skip to content

Commit 37544a1

Browse files
committed
fixed in main
1 parent ebb0e8b commit 37544a1

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎examples/ICRA2026/eval_manipulator.cpp‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1818,15 +1818,18 @@ int main() {
18181818
eval_function_UR5e();
18191819
});
18201820

1821-
// Pin the thread immediately after creation
1821+
#ifdef _WIN32
1822+
// Only available on Windows — pin threads to P-cores
18221823
if (t < (int) cores.size()) {
18231824
SetThreadGroupAffinity(
18241825
(HANDLE) workers.back().native_handle(),
18251826
&cores[t],
18261827
nullptr);
18271828
}
1829+
#endif
18281830
}
18291831

1832+
18301833
for (auto& th: workers)
18311834
th.join();
18321835

0 commit comments

Comments
 (0)