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

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

Issue 1997473005: Remove requirement that mojo::Environment be instantiated. (Closed) Base URL: https://github.com/domokit/mojo.git@work797_no_utility_tls
Patch Set: rebased Created 4 years, 7 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_impl.pyx
diff --git a/mojo/public/python/mojo_system_impl.pyx b/mojo/public/python/mojo_system_impl.pyx
index 3e299c1487180d389f8a8ba71c78ac69a375461d..3b7cfebf83b5f976ed2c7a8c52072030daa2c23a 100644
--- a/mojo/public/python/mojo_system_impl.pyx
+++ b/mojo/public/python/mojo_system_impl.pyx
@@ -57,16 +57,13 @@ cdef class RunLoop(object):
# We use a wrapping class to be able to call the C++ class PythonAsyncWaiter
# across module boundaries.
cdef class AsyncWaiter(object):
- cdef c_environment.CEnvironment* _cenvironment
cdef c_async_waiter.PythonAsyncWaiter* _c_async_waiter
def __init__(self):
- self._cenvironment = new c_environment.CEnvironment()
self._c_async_waiter = c_environment.NewAsyncWaiter()
def __dealloc__(self):
del self._c_async_waiter
- del self._cenvironment
def AsyncWait(self, handle, signals, deadline, callback):
return self._c_async_waiter.AsyncWait(handle, signals, deadline, callback)
« mojo/public/cpp/environment/environment.h ('K') | « mojo/public/python/c_environment.pxd ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698