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

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

Issue 792843002: Refactor the python system_impl module. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Fixes Created 6 years 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 35b8093fd8ae402a09909dd74c1c68f2cbc68ad0..3671cd7fb9eec3a9fc10342bff991b5dcd63518b 100644
--- a/mojo/public/python/mojo/system.pyx
+++ b/mojo/public/python/mojo/system.pyx
@@ -5,6 +5,7 @@
# distutils language = c++
cimport c_core
+cimport c_thunks
from cpython.buffer cimport PyBUF_CONTIG
@@ -27,9 +28,9 @@ def SetSystemThunks(system_thunks_as_object):
This should only be used by the embedder.
"""
- cdef const c_core.MojoSystemThunks* system_thunks = (
- <const c_core.MojoSystemThunks*><uintptr_t>system_thunks_as_object)
- c_core.MojoSetSystemThunks(system_thunks)
+ cdef const c_thunks.MojoSystemThunks* system_thunks = (
+ <const c_thunks.MojoSystemThunks*><uintptr_t>system_thunks_as_object)
+ c_thunks.MojoSetSystemThunks(system_thunks)
mojo.system_impl.SetSystemThunks(system_thunks_as_object)
qsr 2014/12/12 14:27:06 Rethinking about this. This should be done in the
etiennej 2014/12/12 15:29:36 Done.
HANDLE_INVALID = c_core.MOJO_HANDLE_INVALID
@@ -772,4 +773,4 @@ class RunLoop(object):
return None
-_ASYNC_WAITER = mojo.system_impl.ASYNC_WAITER
+_ASYNC_WAITER = mojo.system_impl.AsyncWaiter()

Powered by Google App Engine
This is Rietveld 408576698