Class syncer
Defined in File rs_processing.hpp
Class Documentation
-
class syncer
Public Functions
-
inline syncer(int queue_size = 1)
Sync instance to align frames from different streams
-
inline frameset wait_for_frames(unsigned int timeout_ms = 5000) const
Wait until coherent set of frames becomes available
- Parameters:
timeout_ms – [in] Max time in milliseconds to wait until an exception will be thrown
- Returns:
Set of coherent frames
-
inline bool poll_for_frames(frameset *fs) const
Check if a coherent set of frames is available
- Parameters:
fs – [out] New coherent frame-set
- Returns:
true if new frame-set was stored to result
-
inline bool try_wait_for_frames(frameset *fs, unsigned int timeout_ms = 5000) const
Wait until coherent set of frames becomes available
- Parameters:
timeout_ms – [in] Max time in milliseconds to wait until an available frame
fs – [out] New coherent frame-set
- Returns:
true if new frame-set was stored to result
-
inline syncer(int queue_size = 1)