summaryrefslogtreecommitdiffstats
path: root/net/Socket.cpp
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2017-03-20 17:18:41 +0000
committerMichael Meeks <michael.meeks@collabora.com>2017-03-21 08:31:20 +0000
commitce0dffdc12f22fdae9d937cfbcb58df032b126d9 (patch)
tree1b836467617e36abcfeb3768722f63e739555841 /net/Socket.cpp
parentwsd: remove the socket on move (diff)
downloadonline-ce0dffdc12f22fdae9d937cfbcb58df032b126d9.tar.gz
online-ce0dffdc12f22fdae9d937cfbcb58df032b126d9.zip
Use callback API to implement alertAllUsers safely and simply.
Diffstat (limited to 'net/Socket.cpp')
-rw-r--r--net/Socket.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/Socket.cpp b/net/Socket.cpp
index 0e5d6eab12..008070e3c5 100644
--- a/net/Socket.cpp
+++ b/net/Socket.cpp
@@ -171,6 +171,8 @@ void SocketPoll::dumpState(std::ostream& os)
// FIXME: NOT thread-safe! _pollSockets is modified from the polling thread!
os << " Poll [" << _pollSockets.size() << "] - wakeup r: "
<< _wakeup[0] << " w: " << _wakeup[1] << "\n";
+ if (_newCallbacks.size() > 0)
+ os << "\tcallbacks: " << _newCallbacks.size() << "\n";
os << "\tfd\tevents\trsize\twsize\n";
for (auto &i : _pollSockets)
i->dumpState(os);