summaryrefslogtreecommitdiff
path: root/src/mongo/platform/pause.h
diff options
context:
space:
mode:
authorAndrew Morrow <acm@mongodb.com>2018-06-04 10:40:41 -0400
committerAndrew Morrow <acm@mongodb.com>2018-07-17 15:31:15 -0400
commitd175ae80e6af61f9f37bdebbde3b2b5115ae2a9f (patch)
tree491b4c6d5ca985c4a31f2819b35d4d6a0683e631 /src/mongo/platform/pause.h
parent1c0bce5f9792f0f6d4f26cd041a0c60c0398bd5e (diff)
downloadmongo-d175ae80e6af61f9f37bdebbde3b2b5115ae2a9f.tar.gz
SERVER-36147 Add basic support for targeting emscripten
Diffstat (limited to 'src/mongo/platform/pause.h')
-rw-r--r--src/mongo/platform/pause.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/platform/pause.h b/src/mongo/platform/pause.h
index 5003de534a8..64aa6c16a2b 100644
--- a/src/mongo/platform/pause.h
+++ b/src/mongo/platform/pause.h
@@ -67,6 +67,11 @@
#define MONGO_YIELD_CORE_FOR_SMT() __asm__ volatile("rd %%ccr, %%g0" ::: "memory")
+#elif defined(__EMSCRIPTEN__)
+
+// TODO: What should this be?
+#define MONGO_YIELD_CORE_FOR_SMT()
+
#else
#error "No processor pause implementation for this architecture."
#endif