Package edu.wpi.grip.core.util
Class SinglePermitSemaphore
- java.lang.Object
-
- edu.wpi.grip.core.util.SinglePermitSemaphore
-
public class SinglePermitSemaphore extends java.lang.Object
A semaphore that behaves as if there was exactly one permit that can be acquired.
-
-
Constructor Summary
Constructors Constructor Description SinglePermitSemaphore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
acquire()
Acquires the permit.void
release()
Releases a permit.
-