diff options
Diffstat (limited to 'include/litmus/sbinheap.h')
-rw-r--r-- | include/litmus/sbinheap.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/litmus/sbinheap.h b/include/litmus/sbinheap.h index 3f952beca63b..a108d9e92288 100644 --- a/include/litmus/sbinheap.h +++ b/include/litmus/sbinheap.h | |||
@@ -150,6 +150,12 @@ static inline int sbinheap_empty(struct sbinheap *heap) | |||
150 | return(heap->size == 0); | 150 | return(heap->size == 0); |
151 | } | 151 | } |
152 | 152 | ||
153 | /* Returns true if the sbinheap is full. */ | ||
154 | static inline int sbinheap_full(struct sbinheap *heap) | ||
155 | { | ||
156 | return(heap->size == heap->max_size); | ||
157 | } | ||
158 | |||
153 | /* Get the maximum size of the heap */ | 159 | /* Get the maximum size of the heap */ |
154 | static inline idx_t sbinheap_max_size(struct sbinheap *heap) | 160 | static inline idx_t sbinheap_max_size(struct sbinheap *heap) |
155 | { | 161 | { |