netty5/common
wyzhang 338e1a991c Fix a bug introduced by 79706357c7 which can cause thread to spin in an infinite loop. (#9579)
Motivation:
peek() is implemented in a similar way to poll() for the mpsc queue, thus it is more like a consumer call.
It is possible that we could have multiple thread call peek() and possibly one thread calls poll() at at the same time.
This lead to multiple consumer scenario, which violates the multiple producer single consumer condition and could lead to spin in an infinite loop in peek()

Modification:
Use isEmpty() instead of peek() to check if task queue is empty

Result:
Dont violate the mpsc semantics.
2019-09-19 11:59:51 +02:00
..
src Fix a bug introduced by 79706357c7 which can cause thread to spin in an infinite loop. (#9579) 2019-09-19 11:59:51 +02:00
pom.xml [maven-release-plugin] prepare for next development iteration 2019-09-12 16:09:55 +00:00