diff options
author | darin@google.com <darin@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-11 14:35:15 +0000 |
---|---|---|
committer | darin@google.com <darin@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-11 14:35:15 +0000 |
commit | ffd830813ff2ad974e5b8596e7053cbfc77511f2 (patch) | |
tree | be43c75d0ca05361ed0905e8062fe5f62a583ae8 /base/waitable_event_win.cc | |
parent | 7ce742d8a2434377005763f7b54e4ae844e3e2bd (diff) | |
download | chromium_src-ffd830813ff2ad974e5b8596e7053cbfc77511f2.zip chromium_src-ffd830813ff2ad974e5b8596e7053cbfc77511f2.tar.gz chromium_src-ffd830813ff2ad974e5b8596e7053cbfc77511f2.tar.bz2 |
Provide cross-platform implementation of WaitableEvent for use on Mac and Linux.
I gave the file the suffix _generic since it is implemented entirely in terms of other APIs in base.
This CL also adds a simple unit test for WaitableEvent, and I switched some code in thread.cc over to using WaitableEvent.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@648 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/waitable_event_win.cc')
-rw-r--r-- | base/waitable_event_win.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/base/waitable_event_win.cc b/base/waitable_event_win.cc index 58fbfde..da2d2d8 100644 --- a/base/waitable_event_win.cc +++ b/base/waitable_event_win.cc @@ -30,7 +30,9 @@ #include "base/waitable_event.h" #include <windows.h> + #include "base/logging.h" +#include "base/time.h" namespace base { @@ -78,7 +80,6 @@ bool WaitableEvent::TimedWait(const TimeDelta& max_time) { // about it if it should ever fail. NOTREACHED() << "WaitForSingleObject failed"; return false; - } } // namespace base |