summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-04-23 20:56:25 +0200
committerwm4 <wm4@nowhere>2014-04-23 21:16:52 +0200
commitcd10af4db6c30d25f88095eab2ce24df6a6c92df (patch)
treea244ad5e3d3a462fa81d305f0a8d0c4f6b482c89 /stream
parent80ff94131b477ad9156f1c68da7b8588544fee33 (diff)
downloadmpv-cd10af4db6c30d25f88095eab2ce24df6a6c92df.tar.bz2
mpv-cd10af4db6c30d25f88095eab2ce24df6a6c92df.tar.xz
threads: fix function name
Closer to the corresponding standard function pthread_cond_timedwait.
Diffstat (limited to 'stream')
-rw-r--r--stream/cache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stream/cache.c b/stream/cache.c
index a377d4c96a..57b7b9271c 100644
--- a/stream/cache.c
+++ b/stream/cache.c
@@ -167,7 +167,7 @@ static int cache_wakeup_and_wait(struct priv *s, double *retry_time)
}
pthread_cond_signal(&s->wakeup);
- mpthread_cond_timed_wait(&s->wakeup, &s->mutex, CACHE_WAIT_TIME);
+ mpthread_cond_timedwait(&s->wakeup, &s->mutex, CACHE_WAIT_TIME);
*retry_time += mp_time_sec() - start;
@@ -529,7 +529,7 @@ static void *cache_thread(void *arg)
s->control = CACHE_CTRL_NONE;
}
if (s->idle && s->control == CACHE_CTRL_NONE)
- mpthread_cond_timed_wait(&s->wakeup, &s->mutex, CACHE_IDLE_SLEEP_TIME);
+ mpthread_cond_timedwait(&s->wakeup, &s->mutex, CACHE_IDLE_SLEEP_TIME);
}
pthread_cond_signal(&s->wakeup);
pthread_mutex_unlock(&s->mutex);