MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / connect

Method connect

dds/DCPS/InternalTopic.h:35–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33 typedef WeakRcHandle<InternalDataReader<T> > InternalDataReader_wrch;
34
35 void connect(InternalDataWriter_rch writer)
36 {
37 ACE_GUARD(ACE_Thread_Mutex, g, mutex_);
38 const std::pair<typename WriterSet::iterator, bool> p = writers_.insert(writer);
39
40 if (p.second) {
41 for (typename ReaderSet::const_iterator pos = readers_.begin(), limit = readers_.end(); pos != limit; ++pos) {
42 InternalDataReader_rch reader = pos->lock();
43 if (reader) {
44 writer->add_reader(reader);
45 }
46 }
47 }
48 }
49
50 void connect(InternalDataReader_rch reader)
51 {

Callers

nothing calls this directly

Calls 5

insertMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
lockMethod · 0.45
add_readerMethod · 0.45

Tested by

no test coverage detected