diff options
| author | Mohsen Zohrevandi <mohsen.zohrevandi@fortanix.com> | 2020-06-12 12:06:41 -0700 |
|---|---|---|
| committer | Mohsen Zohrevandi <mohsen.zohrevandi@fortanix.com> | 2020-06-12 12:06:41 -0700 |
| commit | d7dc64bdfea4fbf8974774800ab51e04eaa4f082 (patch) | |
| tree | 5d35c9a8d762b46cf08e4c8cd0696e9adec4c0a7 /src/libstd/sys/sgx/thread.rs | |
| parent | c4b02659c16d2ad0ac36d2c8602edd002e559f7a (diff) | |
| download | rust-d7dc64bdfea4fbf8974774800ab51e04eaa4f082.tar.gz rust-d7dc64bdfea4fbf8974774800ab51e04eaa4f082.zip | |
Handle spurious wakeups in wait_timeout_sgx
Diffstat (limited to 'src/libstd/sys/sgx/thread.rs')
| -rw-r--r-- | src/libstd/sys/sgx/thread.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sys/sgx/thread.rs b/src/libstd/sys/sgx/thread.rs index 8ff0f1fde91..5636a6f7eab 100644 --- a/src/libstd/sys/sgx/thread.rs +++ b/src/libstd/sys/sgx/thread.rs @@ -76,7 +76,7 @@ impl Thread { } pub fn sleep(dur: Duration) { - wait_timeout_sgx(0, dur); + wait_timeout_sgx(0, dur, || true); } pub fn join(self) { |
