From f440bca2c4b4b5e8aa69ec8f95b2086fcad15887 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Mon, 21 Jan 2013 02:29:36 +0000 Subject: [PATCH] use a condition variable in alert_manager to trigger wait_for_alert threads --- docs/todo.html | 117 ++++++++++++++++------------------ include/libtorrent/alert.hpp | 4 +- include/libtorrent/thread.hpp | 3 + src/alert.cpp | 30 +++------ src/thread.cpp | 40 ++++++++++++ 5 files changed, 108 insertions(+), 86 deletions(-) diff --git a/docs/todo.html b/docs/todo.html index e46721e6f..4d297055a 100644 --- a/docs/todo.html +++ b/docs/todo.html @@ -25,61 +25,7 @@ 9 relevant 16 feasible 33 notes -
relevance 3src/alert.cpp:370change this to use a timed wait on a condition variable problem is, that's not necessarily portable. But it should be used where available. This implementation can be left the way it is for more primitive platforms
relevance 3src/storage.cpp:989use binary search to find the file entry