Smack/smack-core/src
Florian Schmaus b510d373b5 reactor: have synchronized block include peeking at scheduled actions
If we do not peek at the scheduled actions in the reactors
synchronized block, then there is a kind of lost-update problem. While
Ractor.schedule() will call wakeup() on the selector, a thread could
have already determined the value of selectWait, while being blocked
at the start of the synchronized reactor section. Once it is able to
enter the section, it will use an outdated selectWait value.

This leads to scheduled actions not being executed on time.

Thanks to Eng ChongMeng for reporting this and suggesting the fix.
2019-10-12 10:22:31 +02:00
..
integration-test Enable werror for javadoc and fix javadoc issues 2019-08-30 12:08:30 +02:00
main reactor: have synchronized block include peeking at scheduled actions 2019-10-12 10:22:31 +02:00
test Add XmlStringBuilderTest 2019-10-05 23:01:03 +02:00