| 89 | } |
| 90 | |
| 91 | bool ChatProcessor::joinChannel(ConnectionId clientId, String const& channelName) { |
| 92 | RecursiveMutexLocker locker(m_mutex); |
| 93 | |
| 94 | // Right now channels are simply created on join if they don't exist. |
| 95 | return m_channels[channelName].add(clientId); |
| 96 | } |
| 97 | |
| 98 | bool ChatProcessor::leaveChannel(ConnectionId clientId, String const& channelName) { |
| 99 | RecursiveMutexLocker locker(m_mutex); |
no test coverage detected