diff options
Diffstat (limited to 'src/util/container.h')
-rw-r--r-- | src/util/container.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/util/container.h b/src/util/container.h index 2ad2bbfc7..ea8c27bf8 100644 --- a/src/util/container.h +++ b/src/util/container.h @@ -143,6 +143,13 @@ public: m_signal.post(); } + void push_back(T &&t) + { + MutexAutoLock lock(m_mutex); + m_queue.push_back(std::move(t)); + m_signal.post(); + } + /* this version of pop_front returns a empty element of T on timeout. * Make sure default constructor of T creates a recognizable "empty" element */ |