commit 97faaec7b948da08780f836d61cb4c031eed2744
parent 3265f828edef3f46901b54379304d21c5601d380
Author: William Casarin <jb55@jb55.com>
Date: Wed, 7 Feb 2024 15:14:54 -0800
return number of items popped when polling
Signed-off-by: William Casarin <jb55@jb55.com>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/protected_queue.h b/src/protected_queue.h
@@ -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;
}
/*