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

#include <vspace.h>

Public Member Functions

 SyncReadEvent (VRef< SyncVar< T > > syncvar)
 
virtual bool start_listen (internals::ipc_signal_t sig)
 
virtual void stop_listen ()
 
T complete ()
 
virtual bool start_listen (internals::ipc_signal_t sig)=0
 
virtual void stop_listen ()=0
 

Private Attributes

VRef< SyncVar< T > > _syncvar
 

Detailed Description

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

Definition at line 2657 of file vspace.h.

Constructor & Destructor Documentation

◆ SyncReadEvent()

template<typename T >
vspace::SyncReadEvent< T >::SyncReadEvent ( VRef< SyncVar< T > >  syncvar)
inline

Definition at line 2662 of file vspace.h.

2662 : _syncvar(syncvar) {
2663 }
VRef< SyncVar< T > > _syncvar
Definition: vspace.h:2659

Member Function Documentation

◆ complete()

template<typename T >
T vspace::SyncReadEvent< T >::complete ( )
inline

Definition at line 2670 of file vspace.h.

2670 {
2671 return _syncvar->read();
2672 }

◆ start_listen()

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

Implements vspace::Event.

Definition at line 2664 of file vspace.h.

2664 {
2665 return _syncvar->start_wait(sig);
2666 }

◆ stop_listen()

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

Implements vspace::Event.

Definition at line 2667 of file vspace.h.

2667 {
2668 _syncvar->stop_wait();
2669 }

Field Documentation

◆ _syncvar

template<typename T >
VRef<SyncVar<T> > vspace::SyncReadEvent< T >::_syncvar
private

Definition at line 2659 of file vspace.h.


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