diff options
Diffstat (limited to 'src/mongo/db/clientcursor.cpp')
| -rw-r--r-- | src/mongo/db/clientcursor.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/clientcursor.cpp b/src/mongo/db/clientcursor.cpp index 764abb3f2e7..a0693dd8c7d 100644 --- a/src/mongo/db/clientcursor.cpp +++ b/src/mongo/db/clientcursor.cpp @@ -571,7 +571,11 @@ namespace mongo { // This sleep helps reader threads yield to writer threads. // Without this, the underlying reader/writer lock implementations // are not sufficiently writer-greedy. +#ifdef _WIN32 + SwitchToThread(); +#else sleepmicros(1); +#endif } else { if ( micros == -1 ) |
