Skip to main content
FRAMES NO FRAMES

Class IloCplex::AsyncHandle

Definition file: ilcplex/ilocplexi.h
Map of IloCplex::AsyncHandleIloCplex::AsyncHandleIloCplex::FeasOptHandleIloCplex::PopulateHandleIloCplex::PresolveHandleIloCplex::RefineConflictHandleIloCplex::RefineMIPStartConflictHandleIloCplex::SolveFixedHandleIloCplex::SolveHandleIloCplex::TuneParamHandleIloCplex::AsyncHandle
Handle to represent an asynchronous function call.
Method Summary
public voidjoin()
public virtual voidkill() const
public virtual IloBooltest() const
Method Detail

join

public void join()

This method waits until the operation represented by this handle finishes. In other words, this method blocks until the operation either returns or is killed. The method also releases all resources allocated for the handle. This method discards the result of the underlying operation. In order to perform a join that returns the result of the underlying operation, consider join operations of the various subclasses.

It is an error to call this function more than once for the same operation.


kill

public virtual void kill() const

This method kills the operation represented by this handle. The semantics of "killing an operation" depend on the operation itself. You still need to join the handle to clean any resources allocated for the handle and thus prevent memory leaks.


test

public virtual IloBool test() const

This method tests whether the operation represented by this handle is still running.

Returns:

true if the operation represented by this handle is still running; returns false otherwise.