Skip to content

🐛 fix Thread tests

Sylvain Fargier requested to merge wip-thread-fix into master
  • wakeMode: had a race, since thread_enter awakens the cond counter may either be 1 or 0 depending on wait_for vs thread_func race (removing the notify_all from thread_enter).
  • pollingMode: loop simplification, mutex that protects counter is held, we can do this simplification.
  • runMode: can't tell whereas the loop had the time to call thread_func before the thread is stopped, thus counter can be either 0 or 1 (removing the test)

Merge request reports