diff options
| author | tgrogers <[email protected]> | 2017-11-18 08:51:43 -0500 |
|---|---|---|
| committer | tgrogers <[email protected]> | 2017-11-18 08:51:43 -0500 |
| commit | a2b163e4476387df8693c1a784cf094f8868a086 (patch) | |
| tree | 795ee670db8a66da8d13f3ae73e9d24ddd542602 /src/gpgpu-sim/delayqueue.h | |
| parent | 366bab391e09ff137a0fadba09be8b823c8db57f (diff) | |
| parent | dccac457bb2263602a6a244297168cae8fda8e47 (diff) | |
Merging Mahmoud
Diffstat (limited to 'src/gpgpu-sim/delayqueue.h')
| -rw-r--r-- | src/gpgpu-sim/delayqueue.h | 1 |
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; } |
