aboutsummaryrefslogtreecommitdiffstats
path: root/include/litmus/sbinheap.h
diff options
context:
space:
mode:
authorGlenn Elliott <gelliott@cs.unc.edu>2014-03-18 14:21:19 -0400
committerGlenn Elliott <gelliott@cs.unc.edu>2014-03-18 14:21:19 -0400
commit5927f76175586daa4e7fb88c631b99d21e685298 (patch)
tree99ba58ea274b8d5519e733c85a78e2749724f1a5 /include/litmus/sbinheap.h
parent6a6d06e65c50d7da5dd2019dafbe76ac9c7d018d (diff)
Cleanup priority tracking for budget enforcement.wip-gpusync-merge
Diffstat (limited to 'include/litmus/sbinheap.h')
-rw-r--r--include/litmus/sbinheap.h6
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. */
154static 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 */
154static inline idx_t sbinheap_max_size(struct sbinheap *heap) 160static inline idx_t sbinheap_max_size(struct sbinheap *heap)
155{ 161{