aboutsummaryrefslogtreecommitdiffstats
path: root/src/condition.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-12-29 17:28:09 +0100
committerMax Kellermann <max@duempel.org>2008-12-29 17:28:09 +0100
commitb5c5a6b4c7e7e2e97a3d68cfd36b1e20b46ad592 (patch)
tree2414b0e60907ce6f0a0d6c29842a06ff5309d725 /src/condition.c
parent0d8ba194beff2214791ffdbc11b4c088dceca514 (diff)
downloadmpd-b5c5a6b4c7e7e2e97a3d68cfd36b1e20b46ad592.tar.gz
mpd-b5c5a6b4c7e7e2e97a3d68cfd36b1e20b46ad592.tar.xz
mpd-b5c5a6b4c7e7e2e97a3d68cfd36b1e20b46ad592.zip
condition: removed cond_timedwait() and cond_signal_async()
These methods are unused.
Diffstat (limited to 'src/condition.c')
-rw-r--r--src/condition.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/condition.c b/src/condition.c
index ed4f538d5..2e594597e 100644
--- a/src/condition.c
+++ b/src/condition.c
@@ -50,28 +50,6 @@ void cond_wait(struct condition *cond)
g_cond_wait(cond->cond, cond->mutex);
}
-int cond_timedwait(struct condition *cond, const long sec)
-{
- GTimeVal t;
-
- g_get_current_time(&t);
- g_time_val_add(&t, sec * 1000000);
-
- if (g_cond_timed_wait(cond->cond, cond->mutex, &t) == FALSE)
- return ETIMEDOUT;
- return 0;
-}
-
-int cond_signal_async(struct condition *cond)
-{
- if (g_mutex_trylock(cond->mutex) == FALSE) {
- g_cond_signal(cond->cond);
- g_mutex_unlock(cond->mutex);
- return 0;
- }
- return EBUSY;
-}
-
void cond_signal_sync(struct condition *cond)
{
g_cond_signal(cond->cond);