DescriptionMake mojo::RunLoop just use pthreads.
In particular, it just uses pthreads TLS stuff directly along with
pthread_once(), which allows RunLoop::{SetUp,TearDown}() to be removed.
This will allow us to make the "standalone" Environment like the
"Chromium"/base-using Environment, i.e., not require instantiation. This
will make things like ApplicationRunner more sane (since it currently
has to mix two things: instantiating the Environment -- which you need
to do once per "process", i.e., Mojo application binary instantiation --
and instantiating a RunLoop -- which you need to do once per thread).
(Really, ApplicationRunner should just be a function, but that's another
story.)
Also note that I can't just use C++11 TLS (I tried:
1c4b90d52b54811cfeeb7d72fd63ee3c33006866), since it's not supported on
iOS (which made Flutter sad). pthreads is OK though (including, AFAICT,
pthread_once()).
R=vardhan@google.com
Committed: https://chromium.googlesource.com/external/mojo/+/c3b1910166bbcd211901700ead52abc3e47934ec
Patch Set 1 #
Total comments: 1
Dependent Patchsets: Messages
Total messages: 5 (1 generated)
|