8 years, 9 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

8 years, 9 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.

Let 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 kuang xf 17 Aug 2015