OpFlex Framework
1.7.0
|
An adaptor that allows integrating libopflex with an external main loop. More...
#include <opflex/ofcore/MainLoopAdaptor.h>
Public Member Functions | |
virtual void | runOnce ()=0 |
Run one iteration of the main loop, and return when complete. More... | |
virtual int | getBackendFd ()=0 |
Get the backend file descriptor. More... | |
virtual int | getBackendTimeout ()=0 |
Get the poll timeout for the backend file descriptor. More... | |
An adaptor that allows integrating libopflex with an external main loop.
If using a main loop adaptor, libopflex will not create any threads of its own.
|
pure virtual |
Get the backend file descriptor.
This can be used to poll on events and call runOnce in response to the events.
|
pure virtual |
Get the poll timeout for the backend file descriptor.
|
pure virtual |
Run one iteration of the main loop, and return when complete.
Call this for each iteration of your main loop after calling OFFramework::start. This function will not block.