Aborts run.
virtual bool abort(int timeout = -1) = 0;
Parameters |
Description |
int timeout = -1 |
The amount of time in milliseconds to wait for AIMMS to abort the procedure. A value of -1 is equivalent to infinite. |
False when the procedure was not running, true otherwise.
Can be called to interrupt a running procedure, on another thread. It returns immediately. The thread currently running the procedure will request AIMMS to abort the run, and will wait for acknowledgement of AIMMS, with a time-out as provided with the abort call. On this thread, the run will than terminate with an AimmsException with code AM_Abort. An ICallback can be implemented to alter this behavior.