|
Macaulay2 Engine
|
mathicgb (mgb) callback that polls the engine's interrupt flag during a long-running GB computation. More...
Public Member Functions | |
| MGBCallback () | |
| size_t | callCount () const |
| bool | wasInterrupted () const |
Protected Member Functions | |
| virtual Action | call () |
Private Attributes | |
| size_t | mCallCount |
| bool | mInterrupted |
mathicgb (mgb) callback that polls the engine's interrupt flag during a long-running GB computation.
Subclass of mgb::GroebnerConfiguration::Callback whose call() is invoked periodically by mathicgb. Each call increments mCallCount and checks system_interrupted(); on interrupt it sets mInterrupted and returns StopWithNoOutputAction so mathicgb tears down its work cleanly without producing a partial GB.
Definition at line 743 of file groebner.cpp.