Permalink
Browse files

fix mistake in README of lostwakeup test

  • Loading branch information...
1 parent 8fddd40 commit f3ed8971a2447c92b7b19ad146e336ff6738c381 @qinzuoyan qinzuoyan committed Jul 9, 2015
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/lostwakeup/README.md
@@ -29,7 +29,7 @@ Commenter [Tobias Brüll correctly pointed out](http://preshing.com/20150316/sem
>
> 2.) T2 reorders the `m_status.load(std::memory_order_relaxed)` before `requests.push(r)` to obtain 1.
>
-> 3.) W runs. First it calls `are.wait()` and sets `are.m_status == 1`. W then empties the `requests`-queue; processing only one item. In the subsequent call to `are.wait()` it blocks on the semaphore.
+> 3.) W runs. First it calls `are.wait()` and sets `are.m_status = 0`. W then empties the `requests`-queue; processing only one item. In the subsequent call to `are.wait()` it blocks on the semaphore.
>
> 4.) T2 continues. The effects of `requests.push(r)` become visible. However, since oldStatus == 1 in are.signal(), nothing happens in T2's call to are.signal().
>

0 comments on commit f3ed897

Please sign in to comment.