nostrdb: return number of items popped when polling
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
1 parent
5788c077c4
commit
bebd531b58
1 file changed
+1
-1
@@ -173,7 +173,7 @@ static inline int prot_queue_try_pop_all(struct prot_queue *q, void *data, int m
|
||||
q->count -= items_to_pop;
|
||||
|
||||
pthread_mutex_unlock(&q->mutex);
|
||||
return 1;
|
||||
return items_to_pop;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in new issue
Block a user