Monado OpenXR Runtime
comp_frame.h File Reference

Small helper functions to manage frames. More...

Include dependency graph for comp_frame.h:

Go to the source code of this file.

Functions

static bool comp_frame_is_invalid_locked (struct comp_frame *f)
 Is this frame invalid. More...
 
static void comp_frame_clear_locked (struct comp_frame *slot)
 Clear a slot, need to be externally synchronized. More...
 
static void comp_frame_move_into_cleared (struct comp_frame *dst, struct comp_frame *src)
 Move a frame into a cleared frame, need to be externally synchronized. More...
 
static void comp_frame_move_and_clear_locked (struct comp_frame *dst, struct comp_frame *src)
 Move a frame, clear src, need to be externally synchronized. More...
 

Detailed Description

Small helper functions to manage frames.

Author
Jakob Bornecrantz jakob.nosp@m.@col.nosp@m.labor.nosp@m.a.co.nosp@m.m

Function Documentation

◆ comp_frame_clear_locked()

static void comp_frame_clear_locked ( struct comp_frame slot)
inlinestatic

Clear a slot, need to be externally synchronized.

References U_ZERO.

Referenced by comp_frame_move_and_clear_locked().

◆ comp_frame_is_invalid_locked()

static bool comp_frame_is_invalid_locked ( struct comp_frame f)
inlinestatic

Is this frame invalid.

Referenced by comp_frame_move_into_cleared().

◆ comp_frame_move_and_clear_locked()

static void comp_frame_move_and_clear_locked ( struct comp_frame dst,
struct comp_frame src 
)
inlinestatic

Move a frame, clear src, need to be externally synchronized.

References comp_frame_clear_locked(), and comp_frame_move_into_cleared().

◆ comp_frame_move_into_cleared()

static void comp_frame_move_into_cleared ( struct comp_frame dst,
struct comp_frame src 
)
inlinestatic

Move a frame into a cleared frame, need to be externally synchronized.

References comp_frame_is_invalid_locked(), and U_ZERO.

Referenced by comp_frame_move_and_clear_locked().