Index: base/synchronization/waitable_event.h |
diff --git a/base/synchronization/waitable_event.h b/base/synchronization/waitable_event.h |
index 3863e98455ee10e74f1ee6c40994aadd5012d947..761965f03a0f07b37b1115f975de822686266695 100644 |
--- a/base/synchronization/waitable_event.h |
+++ b/base/synchronization/waitable_event.h |
@@ -25,6 +25,7 @@ |
namespace base { |
class TimeDelta; |
+class TimeTicks; |
// A WaitableEvent can be a useful thread synchronization tool when you want to |
// allow one thread to wait for another thread to finish some work. For |
@@ -86,12 +87,17 @@ class BASE_EXPORT WaitableEvent { |
// delete e; |
void Wait(); |
- // Wait up until max_time has passed for the event to be signaled. Returns |
- // true if the event was signaled. If this method returns false, then it |
- // does not necessarily mean that max_time was exceeded. |
+ // Wait up until wait_delta has passed for the event to be signaled. Returns |
+ // true if the event was signaled. |
// |
// TimedWait can synchronise its own destruction like |Wait|. |
- bool TimedWait(const TimeDelta& max_time); |
+ bool TimedWait(const TimeDelta& wait_delta); |
+ |
+ // Wait up until end_time deadline has passed for the event to be signaled. |
+ // Return true if the event was signaled. |
+ // |
+ // TimedWaitUntil can synchronise its own destruction like |Wait|. |
+ bool TimedWaitUntil(const TimeTicks& end_time); |
#if defined(OS_WIN) |
HANDLE handle() const { return handle_.Get(); } |