|
OpenDDS
Snapshot(2023/04/07-19:43)
|
#include <UpdateReceiver_T.h>


Public Member Functions | |
| UpdateReceiver (UpdateProcessor< DataType > &processor) | |
| Construct with a processor reference. More... | |
| virtual | ~UpdateReceiver () |
| virtual int | open (void *) |
| virtual int | svc () |
| virtual int | close (u_long flags=0) |
| void | add (OpenDDS::DCPS::unique_ptr< DataType > sample, OpenDDS::DCPS::unique_ptr< DDS::SampleInfo > info) |
| Sample enqueueing. More... | |
| void | stop () |
| Synchronous termination. More... | |
Public Member Functions inherited from ACE_Task_Base | |
| ACE_Task_Base (ACE_Thread_Manager *=0) | |
| virtual | ~ACE_Task_Base (void) |
| virtual int | module_closed (void) |
| virtual int | put (ACE_Message_Block *, ACE_Time_Value *=0) |
| virtual int | activate (long flags=THR_NEW_LWP|THR_JOINABLE|THR_INHERIT_SCHED, int n_threads=1, int force_active=0, long priority=ACE_DEFAULT_THREAD_PRIORITY, int grp_id=-1, ACE_Task_Base *task=0, ACE_hthread_t thread_handles[]=0, void *stack[]=0, size_t stack_size[]=0, ACE_thread_t thread_ids[]=0, const char *thr_name[]=0) |
| virtual int | wait (void) |
| virtual int | suspend (void) |
| virtual int | resume (void) |
| int | grp_id (void) const |
| void | grp_id (int) |
| ACE_Thread_Manager * | thr_mgr (void) const |
| void | thr_mgr (ACE_Thread_Manager *) |
| int | is_reader (void) const |
| int | is_writer (void) const |
| size_t | thr_count (void) const |
| ACE_thread_t | last_thread (void) const |
Public Member Functions inherited from ACE_Service_Object | |
| ACE_Service_Object (ACE_Reactor *=0) | |
| virtual | ~ACE_Service_Object (void) |
Public Member Functions inherited from ACE_Event_Handler | |
| virtual | ~ACE_Event_Handler (void) |
| virtual ACE_HANDLE | get_handle (void) const |
| virtual void | set_handle (ACE_HANDLE) |
| virtual int | priority (void) const |
| virtual void | priority (int priority) |
| virtual int | handle_input (ACE_HANDLE fd=ACE_INVALID_HANDLE) |
| virtual int | handle_output (ACE_HANDLE fd=ACE_INVALID_HANDLE) |
| virtual int | handle_exception (ACE_HANDLE fd=ACE_INVALID_HANDLE) |
| virtual int | handle_timeout (const ACE_Time_Value ¤t_time, const void *act=0) |
| virtual int | handle_exit (ACE_Process *) |
| virtual int | handle_close (ACE_HANDLE handle, ACE_Reactor_Mask close_mask) |
| virtual int | handle_signal (int signum, siginfo_t *=0, ucontext_t *=0) |
| virtual int | resume_handler (void) |
| virtual int | handle_qos (ACE_HANDLE=ACE_INVALID_HANDLE) |
| virtual int | handle_group_qos (ACE_HANDLE=ACE_INVALID_HANDLE) |
| virtual void | reactor (ACE_Reactor *reactor) |
| virtual ACE_Reactor * | reactor (void) const |
| virtual ACE_Reactor_Timer_Interface * | reactor_timer_interface (void) const |
| virtual Reference_Count | add_reference (void) |
| virtual Reference_Count | remove_reference (void) |
| Reference_Counting_Policy & | reference_counting_policy (void) |
Public Member Functions inherited from ACE_Shared_Object | |
| ACE_Shared_Object (void) | |
| virtual | ~ACE_Shared_Object (void) |
| virtual int | init (int argc, ACE_TCHAR *argv[]) |
| virtual int | fini (void) |
| virtual int | info (ACE_TCHAR **info_string, size_t length=0) const |
Private Types | |
| typedef std::pair< DataType *, DDS::SampleInfo *> | DataInfo |
| Contents of the queue. More... | |
Private Attributes | |
| UpdateProcessor< DataType > & | processor_ |
| The object that we delegate update processing to. More... | |
| bool | stop_ |
| Termination flag. More... | |
| ACE_SYNCH_MUTEX | lock_ |
| Protect queue modifications. More... | |
| ACE_Condition< ACE_SYNCH_MUTEX > | workAvailable_ |
| Work to do indicator. More... | |
| std::list< DataInfo > | queue_ |
| Queue of publication data to process. More... | |
Definition at line 35 of file UpdateReceiver_T.h.
|
private |
Contents of the queue.
Definition at line 76 of file UpdateReceiver_T.h.
| OpenDDS::Federator::UpdateReceiver< DataType >::UpdateReceiver | ( | UpdateProcessor< DataType > & | processor | ) |
Construct with a processor reference.
Definition at line 26 of file UpdateReceiver_T.cpp.
|
virtual |
Definition at line 41 of file UpdateReceiver_T.cpp.
| void OpenDDS::Federator::UpdateReceiver< DataType >::add | ( | OpenDDS::DCPS::unique_ptr< DataType > | sample, |
| OpenDDS::DCPS::unique_ptr< DDS::SampleInfo > | info | ||
| ) |
Sample enqueueing.
| sample | - pointer to the received sample to be processed |
| info | - pointer to the info about the sample to be processed. |
NOTE: We take ownership of this data and delete it when we are done processing it.
Definition at line 103 of file UpdateReceiver_T.cpp.
|
virtual |
Reimplemented from ACE_Task_Base.
Definition at line 68 of file UpdateReceiver_T.cpp.
|
virtual |
Reimplemented from ACE_Task_Base.
Definition at line 55 of file UpdateReceiver_T.cpp.
| void OpenDDS::Federator::UpdateReceiver< DataType >::stop | ( | void | ) |
Synchronous termination.
Definition at line 86 of file UpdateReceiver_T.cpp.
|
virtual |
Reimplemented from ACE_Task_Base.
Definition at line 131 of file UpdateReceiver_T.cpp.
|
private |
Protect queue modifications.
Definition at line 70 of file UpdateReceiver_T.h.
|
private |
The object that we delegate update processing to.
Definition at line 64 of file UpdateReceiver_T.h.
|
private |
Queue of publication data to process.
Definition at line 79 of file UpdateReceiver_T.h.
|
private |
Termination flag.
Definition at line 67 of file UpdateReceiver_T.h.
|
private |
Work to do indicator.
Definition at line 73 of file UpdateReceiver_T.h.
1.8.13