Moved queue ping code into queue code

This commit is contained in:
2014-08-05 21:02:16 +01:00
parent 19c4351df9
commit 826c48f3ad
3 changed files with 11 additions and 5 deletions

View File

@@ -85,4 +85,9 @@ void queue_clear(queue *q) {
}
pthread_cond_broadcast(q->cond);
QUEUE_UNLOCK(q);
}
void queue_ping(queue *q) {
QUEUE_LOCK(q);
pthread_cond_broadcast(q->cond);
QUEUE_UNLOCK(q);
}