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

Side by Side Diff: mojo/public/cpp/system/functions.h

Issue 2744943002: Mojo: Move waiting APIs to public library (Closed)
Patch Set: . Created 3 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
« no previous file with comments | « mojo/public/cpp/system/BUILD.gn ('k') | mojo/public/cpp/system/handle.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 // This file provides a C++ wrapping around the standalone functions of the Mojo 5 // This file provides a C++ wrapping around the standalone functions of the Mojo
6 // C API, replacing the prefix of "Mojo" with a "mojo" namespace. 6 // C API, replacing the prefix of "Mojo" with a "mojo" namespace.
7 // 7 //
8 // Please see "mojo/public/c/system/functions.h" for complete documentation of 8 // Please see "mojo/public/c/system/functions.h" for complete documentation of
9 // the API. 9 // the API.
10 10
11 #ifndef MOJO_PUBLIC_CPP_SYSTEM_FUNCTIONS_H_ 11 #ifndef MOJO_PUBLIC_CPP_SYSTEM_FUNCTIONS_H_
12 #define MOJO_PUBLIC_CPP_SYSTEM_FUNCTIONS_H_ 12 #define MOJO_PUBLIC_CPP_SYSTEM_FUNCTIONS_H_
13 13
14 #include "mojo/public/c/system/functions.h" 14 #include "mojo/public/c/system/functions.h"
15 15
16 namespace mojo { 16 namespace mojo {
17 17
18 // Returns the current |MojoTimeTicks| value. See |MojoGetTimeTicksNow()| for 18 // Returns the current |MojoTimeTicks| value. See |MojoGetTimeTicksNow()| for
19 // complete documentation. 19 // complete documentation.
20 inline MojoTimeTicks GetTimeTicksNow() { 20 inline MojoTimeTicks GetTimeTicksNow() {
21 return MojoGetTimeTicksNow(); 21 return MojoGetTimeTicksNow();
22 } 22 }
23 23
24 // The C++ wrappers for |MojoWait()| and |MojoWaitMany()| are defined in
25 // "handle.h".
26 // TODO(ggowan): Consider making the C and C++ APIs more consistent in the
27 // organization of the functions into different header files (since in the C
28 // API, those functions are defined in "functions.h").
29
30 } // namespace mojo 24 } // namespace mojo
31 25
32 #endif // MOJO_PUBLIC_CPP_SYSTEM_FUNCTIONS_H_ 26 #endif // MOJO_PUBLIC_CPP_SYSTEM_FUNCTIONS_H_
OLDNEW
« no previous file with comments | « mojo/public/cpp/system/BUILD.gn ('k') | mojo/public/cpp/system/handle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698