void b_session_event_push(struct b_session *bs, const union xrt_session_event *xse)
Push an event to this session.
Definition b_session.c:122
void b_session_event_pop(struct b_session *bs, union xrt_session_event *out_xse)
Pop a single event from this session, if no event is available then the type of the event will be XRT...
Definition b_session.c:141
struct b_session * b_session_create(struct b_system *bsys)
Create a session, optionally pass in a b_system.
Definition b_session.c:96
Wrapper around OS threading native functions.
Struct used by b_session to queue up events.
Definition b_session.h:26
This is a helper struct that fully implements xrt_session object.
Definition b_session.h:41
struct b_system * bsys
Owning system, optional.
Definition b_session.h:48
struct xrt_session_event_sink sink
Pushes events to this session, used to share to other components.
Definition b_session.h:45
A helper to implement a xrt_system, takes care of multiplexing events to sessions.
Definition b_system.h:46
A wrapper around a native mutex.
Definition os_threading.h:69
Used internally from producers of events to push events into session, some sinks might multiplex even...
Definition xrt_session.h:237
The XRT representation of XrSession, this object does not have all of the functionality of a session,...
Definition xrt_session.h:277
Union of all session events, used to return multiple events through one call.
Definition xrt_session.h:215
Header for session object.