Skip to content

Commit

Permalink
fix mistake in README of lostwakeup test
Browse files Browse the repository at this point in the history
  • Loading branch information
qinzuoyan committed Jul 9, 2015
1 parent 8fddd40 commit f3ed897
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/lostwakeup/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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().
>
Expand Down

0 comments on commit f3ed897

Please sign in to comment.