From f44a242258c282eb1407899a64571c39d010285b Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 25 May 2013 19:56:52 +0200 Subject: Replace calls to usec_sleep() This is just dumb sed replacement to mp_sleep_us(). Also remove the now unused usec_sleep() wrapper. --- stream/cache2.c | 4 ++-- stream/stream.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'stream') diff --git a/stream/cache2.c b/stream/cache2.c index 671bd85c53..302bf6ba17 100644 --- a/stream/cache2.c +++ b/stream/cache2.c @@ -441,9 +441,9 @@ static void cache_mainloop(cache_vars_t *s) { #endif if (sleep_count < INITIAL_FILL_USLEEP_COUNT) { sleep_count++; - usec_sleep(INITIAL_FILL_USLEEP_TIME); + mp_sleep_us(INITIAL_FILL_USLEEP_TIME); } else - usec_sleep(FILL_USLEEP_TIME); // idle + mp_sleep_us(FILL_USLEEP_TIME); // idle #if FORKED_CACHE sa.sa_handler = SIG_IGN; sigaction(SIGUSR1, &sa, NULL); diff --git a/stream/stream.c b/stream/stream.c index caf78851c3..27527a422c 100644 --- a/stream/stream.c +++ b/stream/stream.c @@ -295,7 +295,7 @@ static int stream_reconnect(stream_t *s) "Connection lost! Attempting to reconnect...\n"); if (retry) - usec_sleep(RECONNECT_SLEEP_MS * 1000); + mp_sleep_us(RECONNECT_SLEEP_MS * 1000); s->eof = 1; stream_reset(s); @@ -630,7 +630,7 @@ void stream_set_interrupt_callback(int (*cb)(struct input_ctx *, int), int stream_check_interrupt(int time) { if (!stream_check_interrupt_cb) { - usec_sleep(time * 1000); + mp_sleep_us(time * 1000); return 0; } return stream_check_interrupt_cb(stream_check_interrupt_ctx, time); -- cgit v1.2.3