|
Monado OpenXR Runtime
|
Helper that handles synchronizing the xr{Wait,Begin,End}Frame calls. More...
#include <oxr/oxr_frame_sync.h>

Public Member Functions | |
| int | oxr_frame_sync_init (struct oxr_frame_sync *ofs) |
| Initialize the frame sync helper. More... | |
| XRT_CHECK_RESULT XrResult | oxr_frame_sync_wait_frame (struct oxr_frame_sync *ofs) |
| Handle mutual exclusion in xrWaitFrame w.r.t. More... | |
| XRT_CHECK_RESULT XrResult | oxr_frame_sync_release (struct oxr_frame_sync *ofs) |
| Release at most one blocked xrWaitFrame to run, e.g. More... | |
| XRT_CHECK_RESULT XrResult | oxr_frame_sync_begin_session (struct oxr_frame_sync *ofs) |
| Begin the session, resetting state accordingly. More... | |
| XRT_CHECK_RESULT XrResult | oxr_frame_sync_end_session (struct oxr_frame_sync *ofs) |
| End the session. More... | |
| XRT_CHECK_RESULT bool | oxr_frame_sync_is_session_running (struct oxr_frame_sync *ofs) |
| Is the session running?. More... | |
| void | oxr_frame_sync_fini (struct oxr_frame_sync *ofs) |
| Clean up. More... | |
Data Fields | |
| pthread_mutex_t | mutex |
| pthread_cond_t | cond |
| bool | canWaitFrameReturn |
| bool | initialized |
| bool | running |
Helper that handles synchronizing the xr{Wait,Begin,End}Frame calls.
| XRT_CHECK_RESULT XrResult oxr_frame_sync_begin_session | ( | struct oxr_frame_sync * | ofs | ) |
Begin the session, resetting state accordingly.
| XRT_CHECK_RESULT XrResult oxr_frame_sync_end_session | ( | struct oxr_frame_sync * | ofs | ) |
End the session.
| void oxr_frame_sync_fini | ( | struct oxr_frame_sync * | ofs | ) |
Clean up.
| int oxr_frame_sync_init | ( | struct oxr_frame_sync * | ofs | ) |
Initialize the frame sync helper.
References U_ZERO.
| XRT_CHECK_RESULT bool oxr_frame_sync_is_session_running | ( | struct oxr_frame_sync * | ofs | ) |
Is the session running?.
| XRT_CHECK_RESULT XrResult oxr_frame_sync_release | ( | struct oxr_frame_sync * | ofs | ) |
Release at most one blocked xrWaitFrame to run, e.g.
from xrBeginFrame.
| XRT_CHECK_RESULT XrResult oxr_frame_sync_wait_frame | ( | struct oxr_frame_sync * | ofs | ) |
Handle mutual exclusion in xrWaitFrame w.r.t.
xrBeginFrame