TestWaitForNextCall
Syntax
long TestWaitForNextCall(providedMethodRef * method, dword timeoutMs)
Function
Waits for the next call of the method at the simulated provider. You may use a specific endpoint combination to wait for the call of a specific consumer or the combination [all,
Parameters
method Method provider where the call is awaited.
timeoutMS
Timeout in milliseconds.
Return Values
-2: Resume due to constraint violation
-1: General error, for example, functionality is not available
0: Resume due to timeout
1: resume due to event occurred (method was called)
long ret;providedMethodRef MirrorAdjustment.Adjust method;method = MirrorAdjustment.providerSide[all,LeftMirror].Adjust;ret = TestWaitForNextCall(method, 200);if (ret == 1){int x;x = method.CurrentCCO.deltaX;}
TestWaitForValue | TestWaitForAnswer