Insert barrier

Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
TheMode 2021-09-12 23:22:32 +02:00
parent d9c32fe198
commit ecd2200e1a

View File

@ -38,6 +38,7 @@ public final class TickThread extends Thread {
void startTick(@NotNull Runnable runnable) {
this.tickRunnable = runnable;
this.stop = false;
LockSupport.unpark(this);
}