Commit Graph

2 Commits

Author SHA1 Message Date
Tom
2a04dd5cc1 AtomicCondition: fix race condition, remove notify_{one,all}
* Fix race condition in wait_for between calling atomic load
  and condition_variable::wait_for, by protecting atomic store
  with same mutex as AtomicCondition::wait_for.
* Subsequently, simplify the interface by removing notify_{one,all}.
  condition_varaiable::notify_all is now automatically called in
  `AtomicCondition::set(val)`.
2019-09-23 12:04:28 +02:00
Tom
076e77ff53 initial import 2019-09-14 22:41:56 +02:00