diff options
Diffstat (limited to 'boost/asio/detail/op_queue.hpp')
-rw-r--r-- | boost/asio/detail/op_queue.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/boost/asio/detail/op_queue.hpp b/boost/asio/detail/op_queue.hpp index 9605248567..89f318eedf 100644 --- a/boost/asio/detail/op_queue.hpp +++ b/boost/asio/detail/op_queue.hpp @@ -139,6 +139,12 @@ public: return front_ == 0; } + // Test whether an operation is already enqueued. + bool is_enqueued(Operation* o) const + { + return op_queue_access::next(o) != 0 || back_ == o; + } + private: friend class op_queue_access; |