Quantcast
Channel: Condition variable spurious wakeup/round robin tasks - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by Zan Lynx for Condition variable spurious wakeup/round robin tasks

You should build your code so that without any condition variable it would still work. If it would work if it locked a mutex, checked for the condition, unlocked the mutex and immediately repeated the...

View Article



Condition variable spurious wakeup/round robin tasks

I'm new to C++ threading and I'm trying to write a round robin (cooperative) task manager using C++ threads. Is the declaration of round_robin_task_ulock below valid - it's a global static variable. I...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images