mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1006695 - Mark workers in thread pool to be known by Nuwa. r=luke
They will be recreated in the spawned process.
This commit is contained in:
parent
b76ce542de
commit
72d06b1a38
@ -150,10 +150,25 @@ ThreadPoolWorker::start()
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef MOZ_NUWA_PROCESS
|
||||
extern "C" {
|
||||
MFBT_API bool IsNuwaProcess();
|
||||
MFBT_API void NuwaMarkCurrentThread(void (*recreate)(void *), void *arg);
|
||||
}
|
||||
#endif
|
||||
|
||||
void
|
||||
ThreadPoolWorker::HelperThreadMain(void *arg)
|
||||
{
|
||||
ThreadPoolWorker *worker = (ThreadPoolWorker*) arg;
|
||||
|
||||
#ifdef MOZ_NUWA_PROCESS
|
||||
if (IsNuwaProcess()) {
|
||||
JS_ASSERT(NuwaMarkCurrentThread != nullptr);
|
||||
NuwaMarkCurrentThread(nullptr, nullptr);
|
||||
}
|
||||
#endif
|
||||
|
||||
worker->helperLoop();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user