diff --git a/include/boost/compute/utility/wait_list.hpp b/include/boost/compute/utility/wait_list.hpp index 71915620c..c63795b7d 100644 --- a/include/boost/compute/utility/wait_list.hpp +++ b/include/boost/compute/utility/wait_list.hpp @@ -120,6 +120,11 @@ class wait_list return reinterpret_cast(&m_events[0]); } + /// Reserves a minimum length of storage for the wait list object. + void reserve(size_t new_capacity) { + m_events.reserve(new_capacity); + } + /// Inserts \p event into the wait-list. void insert(const event &event) {