diff options
author | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-15 23:40:24 +0000 |
---|---|---|
committer | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-15 23:40:24 +0000 |
commit | 550a1a41b2a94ffcb28b79ec935fb3a36adc2aa0 (patch) | |
tree | 573d1f9af7ff5c581fc7dc75015bd3ae7afac998 | |
parent | 63a033f21f618adffcd59061a92c82d49846ecd6 (diff) | |
download | chromium_src-550a1a41b2a94ffcb28b79ec935fb3a36adc2aa0.zip chromium_src-550a1a41b2a94ffcb28b79ec935fb3a36adc2aa0.tar.gz chromium_src-550a1a41b2a94ffcb28b79ec935fb3a36adc2aa0.tar.bz2 |
Mac build fix
Review URL: http://codereview.chromium.org/18122
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8138 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | base/waitable_event.h | 4 | ||||
-rw-r--r-- | base/waitable_event_posix.cc | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/base/waitable_event.h b/base/waitable_event.h index 84feedc..cff1e12 100644 --- a/base/waitable_event.h +++ b/base/waitable_event.h @@ -136,8 +136,8 @@ class WaitableEvent { // second element is the index of the WaitableEvent in the original, // unsorted, array. typedef std::pair<WaitableEvent*, size_t> WaiterAndIndex; - static unsigned EnqueueMany(WaiterAndIndex* waitables, - size_t count, Waiter* waiter); + static size_t EnqueueMany(WaiterAndIndex* waitables, + size_t count, Waiter* waiter); Lock lock_; bool signaled_; diff --git a/base/waitable_event_posix.cc b/base/waitable_event_posix.cc index f0a77fa..335f13e 100644 --- a/base/waitable_event_posix.cc +++ b/base/waitable_event_posix.cc @@ -302,9 +302,9 @@ size_t WaitableEvent::WaitMany(WaitableEvent** raw_waitables, // which was signaled, from the end of the array. // ----------------------------------------------------------------------------- // static -unsigned WaitableEvent::EnqueueMany +size_t WaitableEvent::EnqueueMany (std::pair<WaitableEvent*, size_t>* waitables, - unsigned count, Waiter* waiter) { + size_t count, Waiter* waiter) { if (!count) return 0; @@ -316,7 +316,7 @@ unsigned WaitableEvent::EnqueueMany return count; } - const unsigned r = EnqueueMany(waitables + 1, count - 1, waiter); + const size_t r = EnqueueMany(waitables + 1, count - 1, waiter); if (r) { waitables[0].first->lock_.Release(); } else { |