mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 785905 followup - Fix --disable-threadsafe shell builds.
This commit is contained in:
parent
f394972e75
commit
1c8332fe30
@ -231,9 +231,11 @@ CompileCompartment::hasObjectMetadataCallback()
|
|||||||
return compartment()->hasObjectMetadataCallback();
|
return compartment()->hasObjectMetadataCallback();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef JS_WORKER_THREADS
|
||||||
AutoLockForCompilation::AutoLockForCompilation(CompileCompartment *compartment
|
AutoLockForCompilation::AutoLockForCompilation(CompileCompartment *compartment
|
||||||
MOZ_GUARD_OBJECT_NOTIFIER_PARAM_IN_IMPL)
|
MOZ_GUARD_OBJECT_NOTIFIER_PARAM_IN_IMPL)
|
||||||
{
|
{
|
||||||
MOZ_GUARD_OBJECT_NOTIFIER_INIT;
|
MOZ_GUARD_OBJECT_NOTIFIER_INIT;
|
||||||
init(compartment->compartment()->runtimeFromAnyThread());
|
init(compartment->compartment()->runtimeFromAnyThread());
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
@ -863,11 +863,19 @@ struct JSRuntime : public JS::shadow::Runtime,
|
|||||||
}
|
}
|
||||||
|
|
||||||
void addCompilationThread() {
|
void addCompilationThread() {
|
||||||
|
#ifdef JS_WORKER_THREADS
|
||||||
numCompilationThreads++;
|
numCompilationThreads++;
|
||||||
|
#else
|
||||||
|
MOZ_ASSUME_UNREACHABLE("No threads");
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
void removeCompilationThread() {
|
void removeCompilationThread() {
|
||||||
|
#ifdef JS_WORKER_THREADS
|
||||||
JS_ASSERT(numCompilationThreads);
|
JS_ASSERT(numCompilationThreads);
|
||||||
numCompilationThreads--;
|
numCompilationThreads--;
|
||||||
|
#else
|
||||||
|
MOZ_ASSUME_UNREACHABLE("No threads");
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
bool compilationThreadsPresent() const {
|
bool compilationThreadsPresent() const {
|
||||||
|
Loading…
Reference in New Issue
Block a user