forked from Archive/PX4-Autopilot
23334df1e5
getLockGuard relies on copy elision to work correctly, which the compiler is not required to do (only with C++17). If no copy elision happens, the mutex ends up being unlocked twice, and the CS is executed with the mutex unlocked. The patch also ensures that the same pattern cannot be used again. |
||
---|---|---|
.. | ||
common | ||
nuttx | ||
posix | ||
qurt | ||
CMakeLists.txt |