void join(chat_participant_ptr participant) { addPart(participant); ReadLock lock(mutex_); for (auto msg: recent_msgs_) participant->deliver(msg); }
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); } }
void join(chat_participant_ptr participant) { participants_.insert(participant); for (auto msg: recent_msgs_) participant->deliver(msg); }