GEOS
3.9.1dev
|
Used to manage interruption requests and callbacks. More...
#include <Interrupt.h>
Public Types | |
typedef void( | Callback) (void) |
Static Public Member Functions | |
static void | request () |
static void | cancel () |
static bool | check () |
static Callback * | registerCallback (Callback *cb) |
Register a callback that will be invoked before checking for interruption requests. More... | |
static void | process () |
static void | interrupt () |
Used to manage interruption requests and callbacks.
Definition at line 26 of file Interrupt.h.
typedef void( geos::util::Interrupt::Callback) (void) |
Definition at line 30 of file Interrupt.h.
|
static |
Cancel a pending interruption request
|
static |
Check if an interruption request is pending
|
static |
|
static |
Invoke the callback, if any. Process pending interruption, if any.
Register a callback that will be invoked before checking for interruption requests.
NOTE that interruption request checking may happen frequently so any callback would better be quick.
The callback can be used to call Interrupt::request()
|
static |
Request interruption of operations
Operations will be terminated by a GEOSInterrupt exception at first occasion.