1 // get_current_thread_id.hpp --------------------------------------------------------------//
3 // Copyright 2010 Vicente J. Botet Escriba
4 // Copyright 2015 Andrey Semashev
6 // Distributed under the Boost Software License, Version 1.0.
7 // See http://www.boost.org/LICENSE_1_0.txt
10 #ifndef BOOST_DETAIL_WINAPI_GET_CURRENT_THREAD_ID_HPP
11 #define BOOST_DETAIL_WINAPI_GET_CURRENT_THREAD_ID_HPP
13 #include <boost/detail/winapi/basic_types.hpp>
15 #ifdef BOOST_HAS_PRAGMA_ONCE
19 // Windows CE define GetCurrentThreadId as an inline function in kfuncs.h
20 #if !defined( BOOST_USE_WINDOWS_H ) && !defined( UNDER_CE )
22 BOOST_SYMBOL_IMPORT boost::detail::winapi::DWORD_ WINAPI GetCurrentThreadId(BOOST_DETAIL_WINAPI_VOID);
29 using ::GetCurrentThreadId;
34 #endif // BOOST_DETAIL_WINAPI_GET_CURRENT_THREAD_ID_HPP