summaryrefslogtreecommitdiff
path: root/src/socket_base.hpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2012-04-19 20:17:47 +0200
committerMartin Sustrik <sustrik@250bpm.com>2012-04-20 06:59:47 +0200
commitce2b29af43b4624e053377ef00c5a7e2b80c08b7 (patch)
treeaf6bfc20de9fd2c9752dc1924a2db45b040133b6 /src/socket_base.hpp
parent18a61b7cd60399944972482fabab4d7e81ffddae (diff)
Clock instance removed from surveyor_t
SURVEYOR socket now uses clock instance from socket_base_t for measuring survey timeout. This allows for better performance in tight xs_recv() loops. Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src/socket_base.hpp')
-rw-r--r--src/socket_base.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/socket_base.hpp b/src/socket_base.hpp
index 0f7dca8..54a5f0a 100644
--- a/src/socket_base.hpp
+++ b/src/socket_base.hpp
@@ -133,6 +133,9 @@ namespace xs
// Delay actual destruction of the socket.
void process_destroy ();
+ // Measure time in efficient manner.
+ uint64_t now_ms ();
+
private:
// Initialise the object. This function is separate from constructor