Chromium Code Reviews| 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(); |