From 8c73eee23f15ef11b6ef3b8f8113f78a95794e47 Mon Sep 17 00:00:00 2001 From: cjihrig Date: Fri, 22 Nov 2019 15:30:56 -0500 Subject: unix,win: add uv_sleep() This commit exposes the uv_sleep() function that previously only existed in the test runner. PR-URL: https://github.com/libuv/libuv/pull/2548 Reviewed-By: Anna Henningsen Reviewed-By: Richard Lau --- test/runner-unix.c | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'test/runner-unix.c') diff --git a/test/runner-unix.c b/test/runner-unix.c index 432cf33d..716c15ff 100644 --- a/test/runner-unix.c +++ b/test/runner-unix.c @@ -448,17 +448,3 @@ void rewind_cursor(void) { fprintf(stderr, "\033[2K\r"); #endif } - - -/* Pause the calling thread for a number of milliseconds. */ -void uv_sleep(int msec) { - int sec; - int usec; - - sec = msec / 1000; - usec = (msec % 1000) * 1000; - if (sec > 0) - sleep(sec); - if (usec > 0) - usleep(usec); -} -- cgit v1.2.3