예제 #1
0
  void join(chat_participant_ptr participant)
  {
	  addPart(participant);
	  ReadLock lock(mutex_);
    for (auto msg: recent_msgs_)
      participant->deliver(msg);
  }
예제 #2
0
파일: chat_room.hpp 프로젝트: AkuaHale/Test
 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);
 }