Package io.github.frc5024.asynchal
Class Poller
- java.lang.Object
-
- io.github.frc5024.asynchal.Poller
-
public class Poller extends java.lang.Object
You have been lied to. This library is not fully real-time. I don't want to deal with writing a JNI wrapper for some FPGA DMA code, so this quick-refresh loop is the best you'll get for callbacks.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deregister(Pollable p)
de-Register a pollable componentstatic Poller
getInstance()
Get a poller instancevoid
register(Pollable p)
Register a pollable component
-
-
-
Method Detail
-
getInstance
public static Poller getInstance()
Get a poller instance- Returns:
- Instance
-
register
public void register(Pollable p)
Register a pollable component- Parameters:
p
- Pollable
-
deregister
public void deregister(Pollable p)
de-Register a pollable component- Parameters:
p
- Pollable
-
-