bors 604a674ea3 Auto merge of #1536 - divergentdave:nanosleep, r=RalfJung
Nanosleep

This PR adds a shim for `libc::nanosleep`, (available under -Zmiri-disable-isolation only) which backs `thread::sleep` on Linux and macOS. I started off by extracting the `timespec` parsing from the `pthread_cond_timedwait` shim into a helper method, and adding checks for invalid values. The second commit adds the new shim and a small test. The shim blocks the current thread, and registers a timeout callback to unblock the thread again, using the same method as `pthread_cond_timedwait` does.
2020-09-08 08:26:33 +00:00
..
2020-09-07 10:54:39 -05:00
2020-08-31 19:32:14 -05:00
2020-09-01 10:55:09 +02:00
2020-03-30 10:23:16 +02:00
2020-03-23 23:53:54 +01:00
2020-01-25 13:48:26 -06:00
2020-06-28 20:40:20 +02:00
2019-11-25 15:08:47 +01:00
2020-05-24 12:03:06 +02:00
2020-03-27 08:43:08 -04:00
2020-03-06 08:21:53 -05:00
2019-11-25 15:08:47 +01:00
2020-09-07 13:10:31 +02:00
2020-06-06 16:54:13 +00:00
2020-08-27 09:27:58 +02:00
2020-05-20 00:00:35 +02:00
2020-01-19 10:03:18 -06:00
2020-01-19 10:03:18 -06:00
2020-06-22 11:32:01 +02:00
2020-09-02 20:57:20 -05:00
2020-09-02 20:57:20 -05:00
2020-08-01 14:18:52 +02:00
2020-06-28 20:40:20 +02:00
2020-03-22 08:55:39 +01:00
2020-05-30 09:23:25 +02:00
2020-06-20 11:48:42 +02:00
2020-01-19 10:03:18 -06:00
2020-09-07 15:05:26 -05:00
2020-09-07 11:29:47 +02:00
2020-06-01 01:12:31 +02:00