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

Side by Side Diff: mojo/message_pump/message_pump_mojo.cc

Issue 1801793003: Move mojo::{Wait,WaitMany}() to (the newly-added) mojo/public/cpp/system/wait.h. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 9 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "mojo/message_pump/message_pump_mojo.h" 5 #include "mojo/message_pump/message_pump_mojo.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/debug/alias.h" 10 #include "base/debug/alias.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/threading/thread_local.h" 12 #include "base/threading/thread_local.h"
13 #include "base/time/time.h" 13 #include "base/time/time.h"
14 #include "mojo/message_pump/message_pump_mojo_handler.h" 14 #include "mojo/message_pump/message_pump_mojo_handler.h"
15 #include "mojo/message_pump/time_helper.h" 15 #include "mojo/message_pump/time_helper.h"
16 #include "mojo/public/cpp/system/wait.h"
16 17
17 namespace mojo { 18 namespace mojo {
18 namespace common { 19 namespace common {
19 namespace { 20 namespace {
20 21
21 base::ThreadLocalPointer<MessagePumpMojo>* CurrentPump() { 22 base::ThreadLocalPointer<MessagePumpMojo>* CurrentPump() {
22 static auto* tls = new base::ThreadLocalPointer<MessagePumpMojo>; 23 static auto* tls = new base::ThreadLocalPointer<MessagePumpMojo>;
23 return tls; 24 return tls;
24 } 25 }
25 26
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 void MessagePumpMojo::WillSignalHandler() { 324 void MessagePumpMojo::WillSignalHandler() {
324 FOR_EACH_OBSERVER(Observer, observers_, WillSignalHandler()); 325 FOR_EACH_OBSERVER(Observer, observers_, WillSignalHandler());
325 } 326 }
326 327
327 void MessagePumpMojo::DidSignalHandler() { 328 void MessagePumpMojo::DidSignalHandler() {
328 FOR_EACH_OBSERVER(Observer, observers_, DidSignalHandler()); 329 FOR_EACH_OBSERVER(Observer, observers_, DidSignalHandler());
329 } 330 }
330 331
331 } // namespace common 332 } // namespace common
332 } // namespace mojo 333 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/edk/embedder/multiprocess_embedder_unittest.cc ('k') | mojo/public/cpp/bindings/lib/connector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698