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

Unified Diff: mojo/public/python/mojo_system.pyx

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 side-by-side diff with in-line comments
Download patch
Index: mojo/public/python/mojo_system.pyx
diff --git a/mojo/public/python/mojo_system.pyx b/mojo/public/python/mojo_system.pyx
index 31ef2a4004773782b1ea55e80f509e77f82771b7..4d63ff3d67ead0e0f76546edf5c402596efee95f 100644
--- a/mojo/public/python/mojo_system.pyx
+++ b/mojo/public/python/mojo_system.pyx
@@ -75,7 +75,7 @@ _WAITMANY_NO_SIGNAL_STATE_ERRORS = [RESULT_INVALID_ARGUMENT,
def GetTimeTicksNow():
"""Monotonically increasing tick count representing "right now."
- See mojo/public/c/system/functions.h
+ See mojo/public/c/system/time.h
"""
return c_core.MojoGetTimeTicksNow()
@@ -203,7 +203,7 @@ def WaitMany(handles_and_signals, deadline):
Args:
handles_and_signals: list of tuples of handle and signal.
- See mojo/public/c/system/functions.h
+ See mojo/public/c/system/wait.h
"""
cdef uint32_t length = len(handles_and_signals)
cdef uint32_t result_index = <uint32_t>(-1)
@@ -343,7 +343,7 @@ cdef class Handle(object):
def Close(self):
"""Closes this handle.
- See mojo/public/c/system/functions.h
+ See mojo/public/c/system/handle.h
"""
cdef c_core.MojoResult result = c_core.MOJO_RESULT_OK
if self.IsValid():
@@ -357,7 +357,7 @@ cdef class Handle(object):
def Wait(self, signals, deadline):
"""Waits on the given handle.
- See mojo/public/c/system/functions.h
+ See mojo/public/c/system/wait.h
"""
cdef c_core.MojoHandle handle = self._mojo_handle
cdef c_core.MojoHandleSignals csignals = signals

Powered by Google App Engine
This is Rietveld 408576698