Really disable multithreading on the Emscripten target (nw)

This commit is contained in:
Justin Kerk 2018-05-01 04:49:48 +00:00
parent 42a7f3d96c
commit ab7a8ecc6f

View File

@ -275,6 +275,11 @@ osd_work_queue *osd_work_queue_alloc(int flags)
if (osdworkqueuemaxthreads != nullptr && sscanf(osdworkqueuemaxthreads, "%d", &osdthreadnum) == 1 && threadnum > osdthreadnum)
threadnum = osdthreadnum;
#if defined(SDLMAME_EMSCRIPTEN)
// threads are not supported at all
threadnum = 0;
#endif
// clamp to the maximum
queue->threads = std::min(threadnum, WORK_MAX_THREADS);