2021-06-24 10:00 PM
I got an error when try to use std::mutex, std::lock and similar.
There is a define _GLIBCXX_HAS_GTHREADS that prevents compiling of .
Is there a way to define it from compilation or an implementation of std::mutex in RTOS?
Best Regards
2021-06-29 07:42 AM
Hi @Community member ,
To allow the community to help you, you need to provide some more details:
-Amel
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2021-06-29 07:53 AM
2021-06-29 10:30 PM
Hello Amel NASRI,
thanks for your interesting in the problem.
I think my problem is:
I would like to use some funtionality, for example std::mutex. From standard namespace.
A mutex depends on the O.S. Can be implemented by mean of a semaphore for example.
For RTOS, it seems this implementation is not available or at least is protected by a define not defined.
Is it possible somehow to enable the implementation?
Someone did this job, https://embeddedartistry.com/blog/2018/02/01/implementing-stdmutex-with-threadx/
but for me is not clear how to fit in STM32CubeIde.
Best Regards