TestWaitForJoinedEvent
Valid for: CANoe DE • CANoe4SW DE NoteRegardless of how the wait point was discontinued, afterwards the set of “joined events” is empty. That is, waiting for “joined events” always empties the previously defined set of “joined events”.
Function Syntax
long TestWaitForJoinedEvent(long aEventHandle, dword aTimeout); // form 1long TestWaitForJoinedEvent(long aEventHandle, bool aAndEventsAllAtLeastOnce, dword aTimeout); // form 2long TestWaitForJoinedEvent(long aEventHandle, bool aAndEventsAllAtLeastOnce, long aStopHandle, dword aTimeout); // form 3
Description
Waits for the specified joined event. The wait condition is resolved when the specified joined event is signaled. In the case of form 3, the wait condition is also resolved when the aStopHandle event is signaled. If neither event occurs before the expiration of the specified time aTimeout, the wait condition is resolved nevertheless.Parameters
- aEventHandle: Event handle that was returned by a previous
TestJoin…-function. - aAndEventsAllAtLeastOnce: When set to 1, conditions within condition compositions formed with TestJoinAnd only need to match at least once. If aAndEventsAllAtLeastOnce is not set (i.e., it is 0), form 1 and form 2 are identical.
- aStopHandle: Event handle that was returned by a previous
TestJoin…-function. Allows for an additional stop criterion besides the timeout. - aTimeout: 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
- > 0: Joined event or stop event occurred. The index of the final event is returned, indicating what has triggered the resolution.