fix endless loop race condition in NodeQueue, #19949

- also fixed some forgotten copy-pasta between peekNode and pollNode
- also added JavaDoc to all methods, explaining which can be used from
  what thread
- did not fix the JDK8 improvement of using Unsafe instead of inheriting
  from AtomicReference since that inheritance is not a bad thing,
  actually
This commit is contained in:
Roland Kuhn 2016-03-15 11:41:29 +01:00
parent ad8ab128c4
commit f9d3789bfc
5 changed files with 182 additions and 39 deletions

View file

@ -124,7 +124,9 @@ Akka comes shipped with a number of mailbox implementations:
* **SingleConsumerOnlyUnboundedMailbox**
- Backed by a very efficient Multiple-Producer Single-Consumer queue, cannot be used with ``BalancingDispatcher``
This queue may or may not be faster than the default one depending on your use-case—be sure to benchmark properly!
- Backed by a Multiple-Producer Single-Consumer queue, cannot be used with ``BalancingDispatcher``
- Blocking: No

View file

@ -124,7 +124,9 @@ Akka comes shipped with a number of mailbox implementations:
* **SingleConsumerOnlyUnboundedMailbox**
- Backed by a very efficient Multiple-Producer Single-Consumer queue, cannot be used with ``BalancingDispatcher``
This queue may or may not be faster than the default one depending on your use-case—be sure to benchmark properly!
- Backed by a Multiple-Producer Single-Consumer queue, cannot be used with ``BalancingDispatcher``
- Blocking: No