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

Unified Diff: mojo/public/cpp/environment/environment.h

Issue 694923002: Update mojo sdk to rev 91d94d6993c9b0c4135a95687a7d541ce90629b (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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/cpp/environment/environment.h
diff --git a/mojo/public/cpp/environment/environment.h b/mojo/public/cpp/environment/environment.h
index 48f4c26eb724cf824e34ab89af3b351ceda590ad..ce3f7d01ad96b42e0ed6647b778ea1e108f18f68 100644
--- a/mojo/public/cpp/environment/environment.h
+++ b/mojo/public/cpp/environment/environment.h
@@ -32,6 +32,14 @@ class Environment {
static const MojoAsyncWaiter* GetDefaultAsyncWaiter();
static const MojoLogger* GetDefaultLogger();
+ // These instantiate and destroy an environment-specific run loop for the
+ // current thread, allowing |GetDefaultAsyncWaiter()| to be used. (The run
+ // loop itself should be accessible via thread-local storage, using methods
+ // specific to the run loop implementation.) Creating and destroying nested
+ // run loops is not supported.
+ static void InstantiateDefaultRunLoop();
+ static void DestroyDefaultRunLoop();
+
private:
MOJO_DISALLOW_COPY_AND_ASSIGN(Environment);
};
« no previous file with comments | « mojo/public/cpp/application/lib/application_test_main.cc ('k') | mojo/public/cpp/environment/lib/environment.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698