L4Re – L4 Runtime Environment
L4Re::Event_buffer_t< PAYLOAD > Class Template Reference

Event buffer class. More...

+ Inheritance diagram for L4Re::Event_buffer_t< PAYLOAD >:
+ Collaboration diagram for L4Re::Event_buffer_t< PAYLOAD >:

Data Structures

struct  Event
 Event structure used in buffer. More...

Public Member Functions

 Event_buffer_t (void *buffer, l4_addr_t size)
 Initialize event buffer. More...
Eventnext () noexcept
 Next event in buffer. More...
bool put (Event const &ev) noexcept
 Put event into buffer at current position. More...

Detailed Description

template<typename PAYLOAD = Default_event_payload>
class L4Re::Event_buffer_t< PAYLOAD >

Event buffer class.

Definition at line 198 of file event.

Constructor & Destructor Documentation

◆ Event_buffer_t()

template<typename PAYLOAD = Default_event_payload>
L4Re::Event_buffer_t< PAYLOAD >::Event_buffer_t ( void *  buffer,
l4_addr_t  size 

Initialize event buffer.

bufferPointer to buffer.
sizeSize of buffer in bytes.

Definition at line 245 of file event.

Member Function Documentation

◆ next()

template<typename PAYLOAD = Default_event_payload>
Event* L4Re::Event_buffer_t< PAYLOAD >::next ( )

Next event in buffer.

0 if no event available, event otherwise.

Definition at line 255 of file event.

References L4Re::Event_buffer_t< PAYLOAD >::Event::time.

◆ put()

template<typename PAYLOAD = Default_event_payload>
bool L4Re::Event_buffer_t< PAYLOAD >::put ( Event const &  ev)

Put event into buffer at current position.

evEvent to put into the buffer.
false if buffer is full and entry could not be added.

Definition at line 272 of file event.

References l4_wmb(), and L4Re::Event_buffer_t< PAYLOAD >::Event::time.

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: