diff options
Diffstat (limited to '3rdparty/asio/include/asio/detail/thread_group.hpp')
-rw-r--r-- | 3rdparty/asio/include/asio/detail/thread_group.hpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/3rdparty/asio/include/asio/detail/thread_group.hpp b/3rdparty/asio/include/asio/detail/thread_group.hpp index 312af44c729..5ebff5e185f 100644 --- a/3rdparty/asio/include/asio/detail/thread_group.hpp +++ b/3rdparty/asio/include/asio/detail/thread_group.hpp @@ -2,7 +2,7 @@ // detail/thread_group.hpp // ~~~~~~~~~~~~~~~~~~~~~~~ // -// Copyright (c) 2003-2016 Christopher M. Kohlhoff (chris at kohlhoff dot com) +// Copyright (c) 2003-2024 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) @@ -19,6 +19,8 @@ #include "asio/detail/scoped_ptr.hpp" #include "asio/detail/thread.hpp" +#include "asio/detail/push_options.hpp" + namespace asio { namespace detail { @@ -64,6 +66,12 @@ public: } } + // Test whether the group is empty. + bool empty() const + { + return first_ == 0; + } + private: // Structure used to track a single thread in the group. struct item @@ -86,4 +94,6 @@ private: } // namespace detail } // namespace asio +#include "asio/detail/pop_options.hpp" + #endif // ASIO_DETAIL_THREAD_GROUP_HPP |