Hi,
I want to use std::mutex, std::lock, std::async and similar in my project
for CC3200. What library/header should I include so that the compiler sees
this type/functions.
Wait fro your reply.
Best Regards
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.
Hi Fortunato Marrelli,
What compiler are you using? See this FAQ on which C++ standards are supported: e2e.ti.com/.../faq-compiler-which-c-standard-is-supported
It looks like std::mutex was added in C++11.
Best regards,
Sarah
Hello Sara P,
thanks for the reply.
I have to develop a project on CC3220S_LAUNCHXL. I am interested in use GNU CPP so I opened the sample project
i2copt3001_cpp_CC3220S_LAUNCHXL_freertos_gcc. As I can see it is C++ but if i declare a variable of type std::mutex it does not compile.
What am i missing? Some define? Some include?
Could you help me?
Best Regards
Hello Sarah P,
I found this interesting link.
https://www.codeproject.com/Articles/1278513/Cplusplus11-FreeRTOS-GCC
But for me it is a little bit complicated . Maybe for you it is easier to understand?
Regards
I can see it is C++ but if i declare a variable of type std::mutex it does not compile.
Features for concurrency are added to C++ by the C++11 standard. However, the full implementation of these features requires significant integration with an underlying OS or RTOS, such as FreeRTOS in your case. I am not aware of any documentation from TI which shows how to integrate these C++ features with FreeRTOS, or any other RTOS.
Thanks and regards,
-George
Thanks very much George.
Did not solve the issue but it is a clear and helpull reply.