This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP432E411Y-BGAEVM: std::mutex

Part Number: MSP432E411Y-BGAEVM

I'm porting a C++ application from a Linux platform, to run under TI RTOS. If possible, I would like to use a std::mutex.

#include <mutex>

compiles OK, but as soon as I try and declare a

std::mutex myMutex;

it just says namespace std does not include mutex.

I have tracked down the header file in


and see that the first section, including namespace std, is commented out, but the later bits include _mutes_base and this seems to define std via the macro _LIBCPP_BEGIN_NAMESPACE_STD.

Ideally, to minimise change, I would like to use

  std::lock_guard<std::mutex> lk(myMutex);

but getting just the mutex working would be a good start.

Any tips?