summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/delayqueue.h
diff options
context:
space:
mode:
authorTimothy G Rogers <[email protected]>2018-11-01 17:14:09 -0400
committerGitHub Enterprise <[email protected]>2018-11-01 17:14:09 -0400
commit68fb9df6d85479cdbae25a185a81d7ec723b3ac2 (patch)
tree68f4048e0f1bf390312184fe21083a8501e0a255 /src/gpgpu-sim/delayqueue.h
parent1be6f76f5d57bd5dda6f0ca4dae3824f0e55eff9 (diff)
parentf06a527258b4a6634f8f148536bb86635b058d55 (diff)
Merge pull request #30 from abdallm/dev
Dev
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; }