Поделиться через


event::wait Method

Waits for the event to become signaled.

_CRTIMP size_t wait(
   unsigned int _Timeout = COOPERATIVE_TIMEOUT_INFINITE
);

Parameters

  • _Timeout
    Indicates the number of milliseconds before the wait times out. The value COOPERATIVE_TIMEOUT_INFINITE signifies that there is no timeout.

Return Value

If the wait was satisfied, the value 0 is returned; otherwise, the value COOPERATIVE_WAIT_TIMEOUT to indicate that the wait timed out without the event becoming signaled.

Requirements

Header: concrt.h

Namespace: Concurrency

See Also

Reference

event Class (Concurrency Runtime)

event::set Method

COOPERATIVE_TIMEOUT_INFINITE Constant

COOPERATIVE_WAIT_TIMEOUT Constant