diff options
Diffstat (limited to '3rdparty/asio/include/asio/detail/thread_context.hpp')
-rw-r--r-- | 3rdparty/asio/include/asio/detail/thread_context.hpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/3rdparty/asio/include/asio/detail/thread_context.hpp b/3rdparty/asio/include/asio/detail/thread_context.hpp index 66d20d6f541..f17824182b4 100644 --- a/3rdparty/asio/include/asio/detail/thread_context.hpp +++ b/3rdparty/asio/include/asio/detail/thread_context.hpp @@ -2,7 +2,7 @@ // detail/thread_context.hpp // ~~~~~~~~~~~~~~~~~~~~~~~~~ // -// Copyright (c) 2003-2016 Christopher M. Kohlhoff (chris at kohlhoff dot com) +// Copyright (c) 2003-2021 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) @@ -30,6 +30,11 @@ class thread_info_base; class thread_context { public: + // Obtain a pointer to the top of the thread call stack. Returns null when + // not running inside a thread context. + ASIO_DECL static thread_info_base* top_of_thread_call_stack(); + +protected: // Per-thread call stack to track the state of each thread in the context. typedef call_stack<thread_context, thread_info_base> thread_call_stack; }; @@ -39,4 +44,8 @@ public: #include "asio/detail/pop_options.hpp" +#if defined(ASIO_HEADER_ONLY) +# include "asio/detail/impl/thread_context.ipp" +#endif // defined(ASIO_HEADER_ONLY) + #endif // ASIO_DETAIL_THREAD_CONTEXT_HPP |