Branch: refs/heads/master
  Home:   https://github.com/STEllAR-GROUP/hpx
  Commit: b240400bd29252845500d9b15120f687e296c36c
      
https://github.com/STEllAR-GROUP/hpx/commit/b240400bd29252845500d9b15120f687e296c36c
  Author: Mikael Simberg <simb...@cscs.ch>
  Date:   2019-04-19 (Fri, 19 Apr 2019)

  Changed paths:
    M hpx/lcos/local/latch.hpp

  Log Message:
  -----------
  Fix latch

Add notified_ variable to avoid wait returning before count_down has notified
other threads. The race looks something like this:

thread 1: decrement the counter outside the lock
thread 2: read counter return immediately because it's 0
thread 2: latch goes out of scope
thread 1: take lock and notify because counter is 0, but fail because latch has 
gone out of scope


  Commit: 387c26cc7ee5814ca4df73ce2a9f4c5c6ffae3a7
      
https://github.com/STEllAR-GROUP/hpx/commit/387c26cc7ee5814ca4df73ce2a9f4c5c6ffae3a7
  Author: Mikael Simberg <mikael.simb...@iki.fi>
  Date:   2019-04-23 (Tue, 23 Apr 2019)

  Changed paths:
    M hpx/lcos/local/latch.hpp

  Log Message:
  -----------
  Merge pull request #3804 from msimberg/fix-latch

Fix latch


Compare: 
https://github.com/STEllAR-GROUP/hpx/compare/493df76e6c36...387c26cc7ee5
_______________________________________________
hpx-commits mailing list
hpx-commits@stellar.cct.lsu.edu
https://mail.cct.lsu.edu/mailman/listinfo/hpx-commits

Reply via email to