Пример #1
0
  void join(chat_participant_ptr participant)
  {
	  addPart(participant);
	  ReadLock lock(mutex_);
    for (auto msg: recent_msgs_)
      participant->deliver(msg);
  }
Пример #2
0
 void join(chat_participant_ptr participant)
 {
   participants_.insert(participant);
   BOOST_FOREACH(chat_message msg, recent_msgs_)
   {
   	participant->deliver(msg);
   }
 void join(chat_participant_ptr participant)
 {
     m_participants.insert(participant);
     for (auto msg: m_recent_msgs)
     {
         participant->deliver(msg);
     }
 }
Пример #4
0
 void join(chat_participant_ptr participant)
 {
   participants_.insert(participant);
   for (auto msg: recent_msgs_)
     participant->deliver(msg);
 }