1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-04 19:25:58 +01:00
Smack/smack-core/src/main/java
Florian Schmaus 9d626bf787 core: improve AsyncButOrdered
Instead of marking the handle as not running by setting the handler's
value in the map to false, we now remove simply the key if there is no
handler running. This also means we no longer need to use a weak hash
map for this.

Also reduce the size of the synchronized blocks, mainly by scheduling
the handler outside of the synchronized(threadActiveMap) block.

Make some code better readable and add some more comments. Also do
start a new handler thread if the task threw.
2019-11-08 10:14:21 +01:00
..
org/jivesoftware/smack core: improve AsyncButOrdered 2019-11-08 10:14:21 +01:00