Add a comment to semaphores

This commit is contained in:
s809
2024-07-11 22:08:10 +05:00
parent af69678545
commit 43b421042d
@@ -446,6 +446,7 @@ public class DhServerLevel extends AbstractDhLevel implements IDhServerLevel
public FullDataSourceV2 fullDataSource;
// Maybe there's a better way to do synchronization, but this should suffice
// Why not something like ReentrantReadWriteLock: locks should not be bound to threads
public final Semaphore requestAddSemaphore = new Semaphore(Short.MAX_VALUE, true);
public final Semaphore requestRemoveSemaphore = new Semaphore(Short.MAX_VALUE, true);
}