| 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 | { |
nothing calls this directly
no test coverage detected