Blocking or non-blocking mode
Previous Topic  Next Topic 

The functions adoConnOpen(),  adoRSetQuery() and adoRSetCmd() are executed Asynchronously by the CXADO.DLL libary and can be called in blocking or non-blocking mode.


In blocking mode, the task will block until the appropriate event has been triggered in the libary, after which the task will be woken up and the function will return with an appropriate error code.


In non-blocking mode the function will always return immediately and it is up to the application to poll the state of the connection or recordset to determine when the execution of the connection or query has completed (see adoConnState(), adoRSetState()).


To change the state of a task to non-blocking mode then call the adoBlockMode(blocking_flag) function.     Set the blocking_flag argument to 0 for blocking mode and a non-zero value for non-blocking mode.     By default a task will start in blocking mode.