13
0
geforkt von Mirrors/Paper
Paper/src/main/java/org/bukkit/craftbukkit/util
Wesley Wolfe 05e889f346 Queue tasks from secondary threads. Fixes BUKKIT-2546 and BUKKIT-2600
This change affects the old chat compatibility layer from an
implementation only standpoint. It does not queue the 'event' to fire,
but rather queues a runnable that allows the calling thread to wait for
execution to finish.

The other effect of this change is that rcon connects now have their
commands queued to be run on next server tick using the same
implementation.

The internal implementation is in org.bukkit.craftbukkit.util.Waitable.
It is very similar to a Future<T> task, but only contains minimal
implementation with object.wait() and object.notify() calls
under the hood of waitable.get() and waitable.run().

PlayerPreLoginEvent now properly implements thread-safe event execution
by queuing the events similar to chat and rcon. This is still a poor way
albeit proper way to implement thread-safety; PlayerPreLoginEvent will
stay deprecated.
2012-10-14 17:26:53 -05:00
..
BlockStateListPopulator.java Only remove blocks when golem is successfully spawned. Fixes BUKKIT-1094 2012-03-11 01:30:16 -05:00
DatFileFilter.java Implemented server.getOfflinePlayers 2011-12-04 17:57:00 +00:00
Java15Compat.java Whitespace + general cleanup 2011-05-15 13:41:46 +02:00
LazyHashSet.java Implement new AsyncPlayerChatEvent. Addresses BUKKIT-2064 2012-08-03 23:44:45 -05:00
LazyPlayerSet.java Implement new AsyncPlayerChatEvent. Addresses BUKKIT-2064 2012-08-03 23:44:45 -05:00
LongHash.java Add LongObjectHashMap and LongHashSet 2012-08-19 09:51:00 -05:00
LongHashSet.java Add LongObjectHashMap and LongHashSet 2012-08-19 09:51:00 -05:00
LongObjectHashMap.java Replace LongObjectHashMap with a more efficient implementation 2012-09-21 11:20:10 -05:00
ServerShutdownThread.java Update CraftBukkit to Minecraft 1.3.1 2012-08-02 04:58:50 -05:00
ShortConsoleLogFormatter.java Use standard format function to format logs. Addresses BUKKIT-2246 2012-08-21 19:17:29 -05:00
StructureGrowDelegate.java [Bleeding] Added support for all TreeType entries to CraftWorld.generateTree(). Addresses BUKKIT-1161 2012-03-21 20:32:17 -04:00
TerminalConsoleHandler.java Update to jline 2. Fixes BUKKIT-717 2012-05-15 23:27:51 -05:00
UnsafeList.java Use a dynamic pool size for the iterator cache 2012-08-20 18:44:07 -05:00
Versioning.java Fix formatting. 2012-01-15 10:54:57 +01:00
Waitable.java Queue tasks from secondary threads. Fixes BUKKIT-2546 and BUKKIT-2600 2012-10-14 17:26:53 -05:00