mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-02 17:00:41 +01:00
Remove unnecessary synchronization
This commit is contained in:
parent
2713650b23
commit
8e642b9116
@ -85,7 +85,7 @@ public class TickThread extends Thread {
|
||||
}
|
||||
}
|
||||
|
||||
public synchronized void startTick(@NotNull CountDownLatch countDownLatch, @NotNull Runnable runnable) {
|
||||
public void startTick(@NotNull CountDownLatch countDownLatch, @NotNull Runnable runnable) {
|
||||
this.countDownLatch.set(countDownLatch);
|
||||
this.queue.add(runnable);
|
||||
LockSupport.unpark(tickThread);
|
||||
|
Loading…
Reference in New Issue
Block a user