mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-05-18 02:46:21 +03:00
Restructure and correct sleep utility for testing
This commit is contained in:
parent
7b67ed0b5a
commit
a72ea0db60
5 changed files with 7 additions and 5 deletions
|
|
@ -5,11 +5,11 @@
|
|||
* time is guaranteed.
|
||||
*/
|
||||
void
|
||||
mq_nanosleep(unsigned ns) {
|
||||
sleep_ns(unsigned ns) {
|
||||
assert(ns <= 1000*1000*1000);
|
||||
|
||||
#ifdef _WIN32
|
||||
Sleep(ns / 1000);
|
||||
Sleep(ns / 1000 / 1000);
|
||||
#else
|
||||
{
|
||||
struct timespec timeout;
|
||||
Loading…
Add table
Add a link
Reference in a new issue