Integrate timers with runtime. (#266)

This patch integrate the new timer implementation with the runtime by
initializing a timer per worker thread. This allows minimizing the
amount of synchronization needed for using timers.
This commit is contained in:
Carl Lerche
2018-03-30 11:50:02 -07:00
committed by GitHub
parent d4d17392fe
commit baa2502ec6
11 changed files with 455 additions and 36 deletions
+5 -1
View File
@@ -44,9 +44,13 @@ tokio-reactor = { version = "0.1.1", path = "tokio-reactor" }
tokio-threadpool = { version = "0.1.1", path = "tokio-threadpool" }
tokio-tcp = { version = "0.1.0", path = "tokio-tcp" }
tokio-udp = { version = "0.1.0", path = "tokio-udp" }
mio = "0.6.14"
tokio-timer = { version = "0.2.0", path = "tokio-timer" }
futures = "0.1.19"
# Needed until `reactor` is removed from `tokio`.
mio = "0.6.14"
# Futures 0.2 integration
futures2 = { version = "0.1.0", path = "futures2", optional = true }