sed s/atomic_bool/atomic_int/g -i simulate/simulate.h

Change atomic_bool to atomic_int to make sure that the compiler will try the best to
generate machine code, instead of relying on an external atomic library
This commit is contained in:
Gianfranco Costamagna
2022-12-07 15:59:21 +01:00
parent 2d304d65e5
commit 0b33fd9eaa
+3 -3
View File
@@ -106,9 +106,9 @@ class MJSIMULATEAPI Simulate {
int run = 1;
// atomics for cross-thread messages
std::atomic_bool exitrequest = false;
std::atomic_bool droploadrequest = false;
std::atomic_bool screenshotrequest = false;
std::atomic_int exitrequest = false;
std::atomic_int droploadrequest = false;
std::atomic_int screenshotrequest = false;
std::atomic_int uiloadrequest = 0;
// loadrequest