Public Member Functions | Private Member Functions | Private Attributes | List of all members
active_object< T > Class Template Reference

#include <concurrency.h>

Public Member Functions

 active_object (T operation)
 
bool is_active () const
 
void start ()
 
void stop ()
 
 ~active_object ()
 

Private Member Functions

void do_loop ()
 

Private Attributes

dispatcher _dispatcher
 
_operation
 
std::atomic< bool > _stopped
 

Detailed Description

template<class T = std::function<void(dispatcher::cancellable_timer)>>
class active_object< T >

Definition at line 376 of file concurrency.h.

Constructor & Destructor Documentation

template<class T = std::function<void(dispatcher::cancellable_timer)>>
active_object< T >::active_object ( operation)
inline

Definition at line 379 of file concurrency.h.

template<class T = std::function<void(dispatcher::cancellable_timer)>>
active_object< T >::~active_object ( )
inline

Definition at line 400 of file concurrency.h.

Member Function Documentation

template<class T = std::function<void(dispatcher::cancellable_timer)>>
void active_object< T >::do_loop ( )
inlineprivate

Definition at line 410 of file concurrency.h.

template<class T = std::function<void(dispatcher::cancellable_timer)>>
bool active_object< T >::is_active ( ) const
inline

Definition at line 405 of file concurrency.h.

template<class T = std::function<void(dispatcher::cancellable_timer)>>
void active_object< T >::start ( )
inline

Definition at line 384 of file concurrency.h.

template<class T = std::function<void(dispatcher::cancellable_timer)>>
void active_object< T >::stop ( )
inline

Definition at line 392 of file concurrency.h.

Member Data Documentation

template<class T = std::function<void(dispatcher::cancellable_timer)>>
dispatcher active_object< T >::_dispatcher
private

Definition at line 423 of file concurrency.h.

template<class T = std::function<void(dispatcher::cancellable_timer)>>
T active_object< T >::_operation
private

Definition at line 422 of file concurrency.h.

template<class T = std::function<void(dispatcher::cancellable_timer)>>
std::atomic<bool> active_object< T >::_stopped
private

Definition at line 424 of file concurrency.h.


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


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:31