how to use semaphore or mutex to replace condition variable?
dear sirs:
最近在porting一些open source的东西到嵌入式实时操作系统上,在需要porting的源码中有用到condition variable,但使用的嵌入式实时操作系统没有提供condition variable,有没有什么方式可以使用semaphore or mutex去实现condition variable?关键是broadcast如何实现?哪位高人能提供好的想法给小弟,如有实例更好,万谢!