Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 5 months ago.
How to support condition variable in mbed
Hi expert,
Do mbed has condition variable implementation or is there any way to simulate condition variable?
1 Answer
9 years, 5 months ago.
Hello,
Can u be more specific? Are you referring to std::condition_variable ? Thats in C++1x which is not available in online IDE.
You can refer to: http://pubs.opengroup.org/onlinepubs/009695399/functions/pthread_cond_timedwait.html
posted by 17 Aug 2015Let me explain more specific:
The mbed rtos library implement thread, semaphore, mutex, thread signal, but lack of condition variable(cv), the condition variable is often used with mutex, is there any way i can implement cv in rtos library?
I am actually using GCC_ARM, is std::condition_variable supported by GCC_ARM?
posted by 17 Aug 2015