OpenDOF Project
boolean DOFOperation_SetTimeout ( DOFOperation  op,
uint32  timeout 
)

Set or change an Operation's timeout.

An Operation's timeout can be adjusted (extended or shortened) provided it has not been cancelled or fully completed (where no more results are possible). It is possible to extend the timeout of an Operation that has only timed out, even during the operation's completion callback. If this is done, the operation state is immediately changed back to "not complete", and the callback will be called later to indicate completion. If the timeout of a timed out operation isn't changed in the callback, the operation cannot be extended.

It is safe to use this call inside the operation's callback(s).

Parameters
opThe Operation. This must not be NULL.
timeoutThe new timeout for the Operation, in milliseconds.
Returns
TRUE if the timeout was set, FALSE otherwise.
core-c-dof-oal Version 8.0.1 Build 0
2018-01-22