diff options
author | Andrew Morrow <acm@mongodb.com> | 2018-06-04 10:40:41 -0400 |
---|---|---|
committer | Andrew Morrow <acm@mongodb.com> | 2018-07-17 15:31:15 -0400 |
commit | d175ae80e6af61f9f37bdebbde3b2b5115ae2a9f (patch) | |
tree | 491b4c6d5ca985c4a31f2819b35d4d6a0683e631 /src/mongo/platform/pause.h | |
parent | 1c0bce5f9792f0f6d4f26cd041a0c60c0398bd5e (diff) | |
download | mongo-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.h | 5 |
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 |