Add Geary.Nonblocking.Queue.is_empty.

This commit is contained in:
Michael James Gratton 2018-07-12 12:15:17 +10:00
parent 0d64fdaa6b
commit 8988a571bc

View file

@ -21,6 +21,9 @@ public class Geary.Nonblocking.Queue<G> : BaseObject {
/** Returns the number of items currently in the queue. */
public int size { get { return queue.size; } }
/** Determines if any items are in the queue. */
public bool is_empty { get { return queue.is_empty; } }
/**
* Determines if duplicate items can be added to the queue.
*