There are a number of useful functions available to handle asynchronous requests.
netslpr |
netslwt |
netslkill |
netsl_assignment |
Checking for completion
To check whether a previously submitted asynchronous request has completed you should use the netslpr() call. It does not block, but returns a value signifying whether the call has completed or not. Below is a short code example.
Submit the asynchronous request:
status = netslnb("inttest()", &i); |
status = netslpr(request); |
NetSolveNotReady - the request has not completed
NetSolveOK - the request has completed