summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/delayqueue.h
diff options
context:
space:
mode:
authortgrogers <[email protected]>2018-02-21 22:46:20 -0500
committertgrogers <[email protected]>2018-02-21 22:46:20 -0500
commit71d9ada37b64360a216dbceef5b7a26a6cab8480 (patch)
treeac0180ec5fb467ea54cea51f9105c4c76e3ac26e /src/gpgpu-sim/delayqueue.h
parent7796a731c2a7d14a58d1369af62c8ad589c63921 (diff)
parent4a94401a277342cfd0799863b1a07abc95f954c7 (diff)
merging in the mainline
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; }