Skip to main content

MAX_TIMEOUT

Constant MAX_TIMEOUT 

Source
pub const MAX_TIMEOUT: Duration;
Expand description

The largest finite timeout: u32::MAX - 1 milliseconds (~49.7 days).

The NDI SDK takes every timeout as a uint32_t count of milliseconds and reserves the largest value, 0xFFFFFFFF, for a wait without a limit (see the event functions in Processing.NDI.RecvListener.h). A finite wait is therefore never passed to the SDK as u32::MAX. A longer timeout is refused with Error::InvalidInput.

A timeout is rounded up to whole milliseconds, so a non-zero wait shorter than a millisecond becomes one millisecond, and only Duration::ZERO polls without blocking.