Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(174)

Side by Side Diff: third_party/WebKit/Source/platform/WaitableEvent.cpp

Issue 2810413002: Rewrite references to "wtf/" to "platform/wtf/" in the rest of platform/. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "platform/WaitableEvent.h" 5 #include "platform/WaitableEvent.h"
6 6
7 #include <vector>
7 #include "base/synchronization/waitable_event.h" 8 #include "base/synchronization/waitable_event.h"
8 #include "platform/heap/SafePoint.h" 9 #include "platform/heap/SafePoint.h"
9 #include "platform/heap/ThreadState.h" 10 #include "platform/heap/ThreadState.h"
10 #include "wtf/Optional.h" 11 #include "platform/wtf/Optional.h"
11 #include "wtf/PtrUtil.h" 12 #include "platform/wtf/PtrUtil.h"
12 #include <vector>
13 13
14 namespace blink { 14 namespace blink {
15 15
16 WaitableEvent::WaitableEvent(ResetPolicy policy, InitialState state) { 16 WaitableEvent::WaitableEvent(ResetPolicy policy, InitialState state) {
17 impl_ = WTF::WrapUnique(new base::WaitableEvent( 17 impl_ = WTF::WrapUnique(new base::WaitableEvent(
18 policy == ResetPolicy::kManual 18 policy == ResetPolicy::kManual
19 ? base::WaitableEvent::ResetPolicy::MANUAL 19 ? base::WaitableEvent::ResetPolicy::MANUAL
20 : base::WaitableEvent::ResetPolicy::AUTOMATIC, 20 : base::WaitableEvent::ResetPolicy::AUTOMATIC,
21 state == InitialState::kSignaled 21 state == InitialState::kSignaled
22 ? base::WaitableEvent::InitialState::SIGNALED 22 ? base::WaitableEvent::InitialState::SIGNALED
(...skipping 18 matching lines...) Expand all
41 std::vector<base::WaitableEvent*> base_events; 41 std::vector<base::WaitableEvent*> base_events;
42 for (size_t i = 0; i < events.size(); ++i) 42 for (size_t i = 0; i < events.size(); ++i)
43 base_events.push_back(events[i]->impl_.get()); 43 base_events.push_back(events[i]->impl_.get());
44 size_t idx = 44 size_t idx =
45 base::WaitableEvent::WaitMany(base_events.data(), base_events.size()); 45 base::WaitableEvent::WaitMany(base_events.data(), base_events.size());
46 DCHECK_LT(idx, events.size()); 46 DCHECK_LT(idx, events.size());
47 return idx; 47 return idx;
48 } 48 }
49 49
50 } // namespace blink 50 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/WaitableEvent.h ('k') | third_party/WebKit/Source/platform/WebFrameScheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698