public interface SyncdDevice
1. wait until all sync'd device have returned from blockUtilReady()
2. run EventLoop.loop()
3. call startBlockingWork() on all sync'd device
Sync'd devices need to register themselves with the event loop manager
Modifier and Type | Method and Description |
---|---|
void |
blockUntilReady()
This method should block until it is ready for the event loop to run, Once this method has
returned, subsequent calls should return immediately until startBlockingWork() has been called.
|
void |
startBlockingWork()
This method will be called to let the sync'd device know that it's ok to enter a blocking
state.
|
void blockUntilReady() throws RobotCoreException, java.lang.InterruptedException
java.lang.InterruptedException
RobotCoreException
void startBlockingWork()
Before this method returns, the sync'd device should put blockUntilReady() into a blocking state. blockUntilReady() should remain in a blocking state until the device is ready for the event loop to run. Once blockUntilReady() returns, it should not block again until startBlockingWork() has been called.