summaryrefslogtreecommitdiff
path: root/base/synchronization/waitable_event.h
diff options
context:
space:
mode:
Diffstat (limited to 'base/synchronization/waitable_event.h')
-rw-r--r--base/synchronization/waitable_event.h14
1 files changed, 4 insertions, 10 deletions
diff --git a/base/synchronization/waitable_event.h b/base/synchronization/waitable_event.h
index 761965f03a..3863e98455 100644
--- a/base/synchronization/waitable_event.h
+++ b/base/synchronization/waitable_event.h
@@ -25,7 +25,6 @@
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
@@ -87,17 +86,12 @@ class BASE_EXPORT WaitableEvent {
// delete e;
void Wait();
- // Wait up until wait_delta has passed for the event to be signaled. Returns
- // true if the event was signaled.
+ // 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.
//
// TimedWait can synchronise its own destruction like |Wait|.
- 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);
+ bool TimedWait(const TimeDelta& max_time);
#if defined(OS_WIN)
HANDLE handle() const { return handle_.Get(); }