diff options
author | Luke Chen <luke.chen@mongodb.com> | 2019-09-09 14:45:50 +1000 |
---|---|---|
committer | Luke Chen <luke.chen@mongodb.com> | 2019-09-09 14:48:15 +1000 |
commit | d1c52b7aafac44e16dd62ce94663eab1aa16f921 (patch) | |
tree | 2aea018150b745b0fc7ef3dc626c4ef4164d2704 /src/third_party/wiredtiger/src/os_posix/os_sleep.c | |
parent | b326fd656716e95418e563ff12368a3015994b5e (diff) | |
download | mongo-d1c52b7aafac44e16dd62ce94663eab1aa16f921.tar.gz |
Import wiredtiger: c600bde20363629405082a3ea985b70dfb00850e from branch mongodb-4.2
ref: 280c572c80..c600bde203
for: 4.2.1
WT-4535 Enhance wt command line utility to use read-only mode
WT-4658 Apply Clang Format
WT-4810 Adding WT_ERR_ASSERT and WT_RET_ASSERT macros
WT-4831 Add option to python tests to not fail if stdout is not empty
WT-4884 Test for recovery correctness with modify operations
WT-4935 Add a perf test to find out the wiredtiger_calc_modify overhead
WT-4966 Fix valgrind detected memory leak from test/csuite/import/smoke.sh
WT-5043 Add debugging to aid in test/format hang
WT-5046 Prepared transactions aren't properly cleared from global table with WT_CONN_LOG_DEBUG_MODE enabled
WT-5062 Adjust the record size to consume less size
WT-5063 Return proper error message for cursor modify operation for not supported cursor types
WT-5074 Fix "make check" on exotic architectures
WT-5076 Cut WiredTiger 3.2.1 release
WT-5080 New wtperf workload modify_distribute option
WT-5085 Fix spacing in wtperf output
WT-5087 Add time tracking at start of reconciliation
WT-5088 Refine clearing and setting of debug timer
WT-5100 Update test format to disable readonly mode in utility
Diffstat (limited to 'src/third_party/wiredtiger/src/os_posix/os_sleep.c')
-rw-r--r-- | src/third_party/wiredtiger/src/os_posix/os_sleep.c | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/src/third_party/wiredtiger/src/os_posix/os_sleep.c b/src/third_party/wiredtiger/src/os_posix/os_sleep.c index c9676dcd585..1508755d504 100644 --- a/src/third_party/wiredtiger/src/os_posix/os_sleep.c +++ b/src/third_party/wiredtiger/src/os_posix/os_sleep.c @@ -10,24 +10,22 @@ /* * __wt_sleep -- - * Pause the thread of control. + * Pause the thread of control. */ void -__wt_sleep(uint64_t seconds, uint64_t micro_seconds) - WT_GCC_FUNC_ATTRIBUTE((visibility("default"))) +__wt_sleep(uint64_t seconds, uint64_t micro_seconds) WT_GCC_FUNC_ATTRIBUTE((visibility("default"))) { - struct timeval t; + struct timeval t; - /* - * Sleeping isn't documented as a memory barrier, and it's a reasonable - * expectation to have. There's no reason not to explicitly include a - * barrier since we're giving up the CPU, and ensures callers are never - * surprised. - */ - WT_FULL_BARRIER(); + /* + * Sleeping isn't documented as a memory barrier, and it's a reasonable expectation to have. + * There's no reason not to explicitly include a barrier since we're giving up the CPU, and + * ensures callers are never surprised. + */ + WT_FULL_BARRIER(); - t.tv_sec = (time_t)(seconds + micro_seconds / WT_MILLION); - t.tv_usec = (suseconds_t)(micro_seconds % WT_MILLION); + t.tv_sec = (time_t)(seconds + micro_seconds / WT_MILLION); + t.tv_usec = (suseconds_t)(micro_seconds % WT_MILLION); - (void)select(0, NULL, NULL, NULL, &t); + (void)select(0, NULL, NULL, NULL, &t); } |