My Project
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes
vspace::EnqueueEvent< T > Class Template Reference

#include <vspace.h>

Public Member Functions

 EnqueueEvent (VRef< Queue< T > > queue)
 
virtual bool start_listen (internals::ipc_signal_t sig)
 
virtual void stop_listen ()
 
void complete (T item)
 
virtual bool start_listen (internals::ipc_signal_t sig)=0
 
virtual void stop_listen ()=0
 

Private Attributes

VRef< Queue< T > > _queue
 

Detailed Description

template<typename T>
class vspace::EnqueueEvent< T >

Definition at line 2619 of file vspace.h.

Constructor & Destructor Documentation

◆ EnqueueEvent()

template<typename T >
vspace::EnqueueEvent< T >::EnqueueEvent ( VRef< Queue< T > >  queue)
inline

Definition at line 2624 of file vspace.h.

2624 : _queue(queue) {
2625 }
VRef< Queue< T > > _queue
Definition: vspace.h:2621

Member Function Documentation

◆ complete()

template<typename T >
void vspace::EnqueueEvent< T >::complete ( T  item)
inline

Definition at line 2632 of file vspace.h.

2632 {
2633 _queue->enqueue_nowait(item);
2634 }

◆ start_listen()

template<typename T >
virtual bool vspace::EnqueueEvent< T >::start_listen ( internals::ipc_signal_t  sig)
inlinevirtual

Implements vspace::Event.

Definition at line 2626 of file vspace.h.

2626 {
2627 return _queue->_outgoing.start_wait(sig);
2628 }

◆ stop_listen()

template<typename T >
virtual void vspace::EnqueueEvent< T >::stop_listen ( )
inlinevirtual

Implements vspace::Event.

Definition at line 2629 of file vspace.h.

2629 {
2630 _queue->_outgoing.stop_wait();
2631 }

Field Documentation

◆ _queue

template<typename T >
VRef<Queue<T> > vspace::EnqueueEvent< T >::_queue
private

Definition at line 2621 of file vspace.h.


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