Chromium Code Reviews

Unified Diff: src/IceGlobalContext.h

Issue 997773002: Refactor Subzero initialization and add a browser callback handler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: more stuff Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: src/IceGlobalContext.h
diff --git a/src/IceGlobalContext.h b/src/IceGlobalContext.h
index d81697d2ede5a0dddc67b68a19b665801cd9c869..4151a5ebff80b539e7af25de5f506586482ff1ca 100644
--- a/src/IceGlobalContext.h
+++ b/src/IceGlobalContext.h
@@ -300,6 +300,14 @@ public:
EmitterWorkItem *emitQueueBlockingPop();
void emitQueueNotifyEnd() { EmitQ.notifyEnd(); }
+ void initParserThread() {
+ ThreadContext *TLS = new ThreadContext();
Jim Stichnoth 2015/03/25 16:34:06 I guess this gets renamed to Tls after https://cod
jvoung (off chromium) 2015/03/25 18:14:35 Oops -- Done.
+ auto Timers = getTimers();
+ Timers->initInto(TLS->Timers);
+ AllThreadContexts.push_back(TLS);
+ ICE_TLS_SET_FIELD(TLS, TLS);
+ }
+
void startWorkerThreads() {
size_t NumWorkers = getFlags().getNumTranslationThreads();
auto Timers = getTimers();

Powered by Google App Engine