summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/osdsync.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/osd/osdsync.cpp')
-rw-r--r--src/osd/osdsync.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/osd/osdsync.cpp b/src/osd/osdsync.cpp
index 12253f2acbd..984d3b3b802 100644
--- a/src/osd/osdsync.cpp
+++ b/src/osd/osdsync.cpp
@@ -87,8 +87,13 @@ static void spin_while_not(const volatile _AtomType * volatile atom, const _Main
int osd_get_num_processors(void)
{
+#if defined(SDLMAME_EMSCRIPTEN)
+ // multithreading is not supported at this time
+ return 1;
+#else
// max out at 4 for now since scaling above that seems to do poorly
return std::min(std::thread::hardware_concurrency(), 4U);
+#endif
}
//============================================================