21#if defined(XRT_OS_LINUX) || defined(XRT_OS_WINDOWS)
25#error "OS not supported"
37 pthread_mutex_t mutex;
40 bool canWaitFrameReturn;
58XRT_CHECK_RESULT XrResult
66XRT_CHECK_RESULT XrResult
74XRT_CHECK_RESULT XrResult
82XRT_CHECK_RESULT XrResult
Helper that handles synchronizing the xr{Wait,Begin,End}Frame calls.
Definition: oxr_frame_sync.h:36
XRT_CHECK_RESULT bool oxr_frame_sync_is_session_running(struct oxr_frame_sync *ofs)
Is the session running?.
Definition: oxr_frame_sync.c:112
XRT_CHECK_RESULT XrResult oxr_frame_sync_wait_frame(struct oxr_frame_sync *ofs)
Handle mutual exclusion in xrWaitFrame w.r.t.
Definition: oxr_frame_sync.c:40
int oxr_frame_sync_init(struct oxr_frame_sync *ofs)
Initialize the frame sync helper.
Definition: oxr_frame_sync.c:18
XRT_CHECK_RESULT XrResult oxr_frame_sync_end_session(struct oxr_frame_sync *ofs)
End the session.
Definition: oxr_frame_sync.c:98
XRT_CHECK_RESULT XrResult oxr_frame_sync_begin_session(struct oxr_frame_sync *ofs)
Begin the session, resetting state accordingly.
Definition: oxr_frame_sync.c:83
XRT_CHECK_RESULT XrResult oxr_frame_sync_release(struct oxr_frame_sync *ofs)
Release at most one blocked xrWaitFrame to run, e.g.
Definition: oxr_frame_sync.c:67
void oxr_frame_sync_fini(struct oxr_frame_sync *ofs)
Clean up.
Definition: oxr_frame_sync.c:121
Header holding common defines.
Auto detect OS and certain features.
Include all of the openxr headers in one place.