TestWaitForUpdateFlag
Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DE • CANoe4SW:lite DEFunction Syntax
Description
Waits for the update flag of a valueHandle to be set. Each valueHandle has an update flag which is set when the value is updated and reset through an explicit call to valueHandle::ClearUpdateFlag or valueHandle::ResetValueState. Use this function instead of TestWaitForUpdate if an undetermined number of updates may occur between a point where you reset the flag and a point where at least one update must have occurred.Parameters
- value: Value handle of a communication object or distributed object.
- timeoutMS: Maximum time that should be waited [ms]. Transmission of 0: no timeout controlling.
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 (update flag was set)