mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8234131: Miscellaneous changes imported from jsr166 CVS 2021-01
8257671: ThreadPoolExecutor.Discard*Policy: rejected tasks are not cancelled Reviewed-by: alanb, prappo, dl
This commit is contained in:
parent
63e3bd7613
commit
270014ab4e
41 changed files with 273 additions and 207 deletions
|
@ -137,13 +137,13 @@ import jdk.internal.misc.Unsafe;
|
|||
* of exclusive synchronization takes the form:
|
||||
*
|
||||
* <pre>
|
||||
* Acquire:
|
||||
* <em>Acquire:</em>
|
||||
* while (!tryAcquire(arg)) {
|
||||
* <em>enqueue thread if it is not already queued</em>;
|
||||
* <em>possibly block current thread</em>;
|
||||
* }
|
||||
*
|
||||
* Release:
|
||||
* <em>Release:</em>
|
||||
* if (tryRelease(arg))
|
||||
* <em>unblock the first queued thread</em>;
|
||||
* </pre>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue