C4 Engine Terathon Software C4 Engine API Documentation

• System Utilities

API Links
Developer Links

Signal::Wait

Defined in:  C4Threads.h
Waits for a signal to be triggered.
Prototype

int32 Wait(int32 time = kSignalForever);

Parameters
time The time, in milliseconds, to wait for a signal. This should be a nonnegative integer or the special constant kSignalForever indicating that the function should not time out.
Description
The Wait function waits for a signal to be triggered or for a timeout interval to expire. If no trigger occurs before the the timeout interval expires, then the return value is kSignalTimeout. Otherwise, the return value is the index value that was passed to the Signal::Trigger function to trigger the signal.
See Also

Signal::Trigger