| 243 | |
| 244 | |
| 245 | void SocketReactor::dispatch(const Socket& socket, SocketNotification* pNotification) |
| 246 | { |
| 247 | NotifierPtr pNotifier; |
| 248 | { |
| 249 | FastMutex::ScopedLock lock(_mutex); |
| 250 | EventHandlerMap::iterator it = _handlers.find(socket); |
| 251 | if (it != _handlers.end()) |
| 252 | pNotifier = it->second; |
| 253 | else |
| 254 | return; |
| 255 | } |
| 256 | dispatch(pNotifier, pNotification); |
| 257 | } |
| 258 | |
| 259 | |
| 260 | void SocketReactor::dispatch(SocketNotification* pNotification) |