mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 912589 - have JSRuntime::helperThreadCount() return GetCPUCount(), not GetCPUCount()-1 (r=bhackett)
--HG-- extra : rebase_source : 63918ffad4e0f4c71cf9fc79961b4e794df057b7
This commit is contained in:
parent
34d3d2114a
commit
8a161e06d6
@ -1595,9 +1595,9 @@ struct JSRuntime : public JS::shadow::Runtime,
|
||||
|
||||
/* Number of helper threads which should be created for this runtime. */
|
||||
size_t helperThreadCount() const {
|
||||
#ifdef JS_THREADSAFE
|
||||
#ifdef JS_WORKER_THREADS
|
||||
if (requestedHelperThreadCount < 0)
|
||||
return js::GetCPUCount() - 1;
|
||||
return js::GetCPUCount();
|
||||
return requestedHelperThreadCount;
|
||||
#else
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user