summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/delayqueue.h
diff options
context:
space:
mode:
authortgrogers <[email protected]>2018-03-13 10:58:38 -0400
committertgrogers <[email protected]>2018-03-13 10:58:38 -0400
commit7545c4e2c5a41cecc57e9a4bf443995700260a32 (patch)
tree1b6ea2b29dd27843dfe352ad55d3a3797d8c55e7 /src/gpgpu-sim/delayqueue.h
parentd4db0d28cca5fb9ce6496aa7a18859a97e1bd56d (diff)
parentcada77625208167216a874b0dcec2b2828bbf788 (diff)
Merging in latest - Merged in the Jenkinsfile to run all Mahmoud's new configs
Diffstat (limited to 'src/gpgpu-sim/delayqueue.h')
-rw-r--r--src/gpgpu-sim/delayqueue.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gpgpu-sim/delayqueue.h b/src/gpgpu-sim/delayqueue.h
index b25f143..0caa5d4 100644
--- a/src/gpgpu-sim/delayqueue.h
+++ b/src/gpgpu-sim/delayqueue.h
@@ -161,6 +161,7 @@ public:
}
bool full() const { return (m_max_len && m_length >= m_max_len); }
+ bool is_avilable_size(unsigned size) const { return (m_max_len && m_length+size-1 >= m_max_len); }
bool empty() const { return m_head == NULL; }
unsigned get_n_element() const { return m_n_element; }
unsigned get_length() const { return m_length; }