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

Side by Side Diff: mojo/public/c/system/types.h

Issue 1783623005: Add mojo/c/system/{time.h,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 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 contains types and constants/macros common to different Mojo system 5 // DEPRECATED -- do not use: include individual header files instead.
6 // APIs. 6 //
7 // TODO(vtl): Split this file apart (and eliminate). 7 // TODO(vtl): Delete this header file.
8 // 8 //
9 // Note: This header should be compilable as C. 9 // Note: This header should be compilable as C.
10 10
11 #ifndef MOJO_PUBLIC_C_SYSTEM_TYPES_H_ 11 #ifndef MOJO_PUBLIC_C_SYSTEM_TYPES_H_
12 #define MOJO_PUBLIC_C_SYSTEM_TYPES_H_ 12 #define MOJO_PUBLIC_C_SYSTEM_TYPES_H_
13 13
14 #include <stdint.h>
15
16 // TODO(vtl): These includes are here only for historic reasons. If you actually
17 // need either, please include it directly.
18 #include "mojo/public/c/system/handle.h" 14 #include "mojo/public/c/system/handle.h"
19 #include "mojo/public/c/system/result.h" 15 #include "mojo/public/c/system/result.h"
20 16 #include "mojo/public/c/system/time.h"
21 // TODO(vtl): Notes: Use of undefined flags will lead to undefined behavior
22 // (typically they'll be ignored), not necessarily an error.
23
24 // |MojoTimeTicks|: A time delta, in microseconds, the meaning of which is
25 // source-dependent.
26
27 typedef int64_t MojoTimeTicks;
28
29 // |MojoDeadline|: Used to specify deadlines (timeouts), in microseconds (except
30 // for |MOJO_DEADLINE_INDEFINITE|).
31 // |MOJO_DEADLINE_INDEFINITE| - Used to indicate "forever".
32
33 typedef uint64_t MojoDeadline;
34
35 #define MOJO_DEADLINE_INDEFINITE ((MojoDeadline)-1)
36 17
37 #endif // MOJO_PUBLIC_C_SYSTEM_TYPES_H_ 18 #endif // MOJO_PUBLIC_C_SYSTEM_TYPES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698