mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8260664: Phaser.arrive() memory consistency effects
Reviewed-by: dl
This commit is contained in:
parent
9221540e2a
commit
eb4a8af559
1 changed files with 6 additions and 0 deletions
|
@ -148,6 +148,12 @@ import java.util.concurrent.locks.LockSupport;
|
|||
* returns snapshots of these state queries in a form convenient for
|
||||
* informal monitoring.
|
||||
*
|
||||
* <p>Memory consistency effects: Actions prior to any form of arrive
|
||||
* method <a href="package-summary.html#MemoryVisibility">
|
||||
* <i>happen-before</i></a> a corresponding phase advance and
|
||||
* onAdvance actions (if present), which in turn <i>happen-before</i>
|
||||
* actions following the phase advance.
|
||||
*
|
||||
* <p><b>Sample usages:</b>
|
||||
*
|
||||
* <p>A {@code Phaser} may be used instead of a {@code CountDownLatch}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue