Quantcast
Channel: Condition variable spurious wakeup/round robin tasks - Stack Overflow
Browsing latest articles
Browse All 2 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 latest articles
Browse All 2 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>