| Index: src/IceGlobalContext.h
|
| diff --git a/src/IceGlobalContext.h b/src/IceGlobalContext.h
|
| index d81697d2ede5a0dddc67b68a19b665801cd9c869..9264d4302fbc0d6990e4261c399630ea1fafab39 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();
|
| + 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();
|
|
|