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 () throw ()
 Next event in buffer. More...
 
bool put (Event const &ev) throw ()
 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 
)
inline

Initialize event buffer.

Parameters
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 ( )
throw (
)
inline

Next event in buffer.

Returns
0 if no event available, event otherwise.

Definition at line 255 of file event.

◆ put()

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

Put event into buffer at current position.

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

Definition at line 272 of file event.


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