mirror of
https://github.com/holub/mame
synced 2025-10-05 08:41:31 +03:00
Really disable multithreading on the Emscripten target (nw)
This commit is contained in:
parent
42a7f3d96c
commit
ab7a8ecc6f
@ -275,6 +275,11 @@ osd_work_queue *osd_work_queue_alloc(int flags)
|
|||||||
if (osdworkqueuemaxthreads != nullptr && sscanf(osdworkqueuemaxthreads, "%d", &osdthreadnum) == 1 && threadnum > osdthreadnum)
|
if (osdworkqueuemaxthreads != nullptr && sscanf(osdworkqueuemaxthreads, "%d", &osdthreadnum) == 1 && threadnum > osdthreadnum)
|
||||||
threadnum = osdthreadnum;
|
threadnum = osdthreadnum;
|
||||||
|
|
||||||
|
#if defined(SDLMAME_EMSCRIPTEN)
|
||||||
|
// threads are not supported at all
|
||||||
|
threadnum = 0;
|
||||||
|
#endif
|
||||||
|
|
||||||
// clamp to the maximum
|
// clamp to the maximum
|
||||||
queue->threads = std::min(threadnum, WORK_MAX_THREADS);
|
queue->threads = std::min(threadnum, WORK_MAX_THREADS);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user