OpenDDS  Snapshot(2023/04/28-20:55)
ReactorSynch.inl
Go to the documentation of this file.
1 /*
2  *
3  *
4  * Distributed under the OpenDDS License.
5  * See: http://www.opendds.org/license.html
6  */
7 
8 #include "EntryExit.h"
9 #include "dds/DCPS/debug.h"
10 
13  ThreadSynchResource* synch_resource,
14  TransportSendStrategy* strategy,
15  ACE_Reactor* reactor
16 )
17  : ThreadSynch(synch_resource),
18  scheduleOutputHandler_( new ScheduleOutputHandler( strategy, reactor))
19 {
20  DBG_ENTRY_LVL("ReactorSynch","ReactorSynch",6);
21 
22  // Manage the handler storage using the provided _var.
24 
25  if (DCPS_debug_level > 4) {
26  std::size_t id = 0;
27  RcHandle<ThreadSynchWorker> worker = this->worker().lock();
28  if( worker) {
29  id = worker->id();
30  }
32  ACE_TEXT("(%P|%t) ReactorSynch::ReactorSynch() [%d] - ")
33  ACE_TEXT("establishing synch %C a worker.\n"),
34  id,(worker ? "with":"without")));
35  }
36 }
WeakRcHandle< ThreadSynchWorker > worker()
Access the worker implementation directly.
Definition: ThreadSynch.inl:22
#define ACE_DEBUG(X)
ScheduleOutputHandler * scheduleOutputHandler_
Notification event handler.
Definition: ReactorSynch.h:53
ReactorSynch(ThreadSynchResource *synch_resource, TransportSendStrategy *strategy, ACE_Reactor *reactor)
ACE_Event_Handler_var safeHandler_
Memory management using the provided (kluge) var type.
Definition: ReactorSynch.h:56
LM_DEBUG
ACE_TEXT("TCP_Factory")
OpenDDS_Dcps_Export unsigned int DCPS_debug_level
Definition: debug.cpp:30
#define DBG_ENTRY_LVL(CNAME, MNAME, DBG_LVL)
Definition: EntryExit.h:68
#define ACE_INLINE
event handler used to enable and disable output processing.