get_current_thread_id.hpp 797 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Copyright 2010 Vicente J. Botet Escriba
  3. * Copyright 2015 Andrey Semashev
  4. *
  5. * Distributed under the Boost Software License, Version 1.0.
  6. * See http://www.boost.org/LICENSE_1_0.txt
  7. */
  8. #ifndef BOOST_WINAPI_GET_CURRENT_THREAD_ID_HPP_INCLUDED_
  9. #define BOOST_WINAPI_GET_CURRENT_THREAD_ID_HPP_INCLUDED_
  10. #include <boost/winapi/basic_types.hpp>
  11. #ifdef BOOST_HAS_PRAGMA_ONCE
  12. #pragma once
  13. #endif
  14. // Windows CE define GetCurrentThreadId as an inline function in kfuncs.h
  15. #if !defined( BOOST_USE_WINDOWS_H ) && !defined( UNDER_CE )
  16. extern "C" {
  17. BOOST_SYMBOL_IMPORT boost::winapi::DWORD_ BOOST_WINAPI_WINAPI_CC GetCurrentThreadId(BOOST_WINAPI_DETAIL_VOID);
  18. }
  19. #endif
  20. namespace boost {
  21. namespace winapi {
  22. using ::GetCurrentThreadId;
  23. }
  24. }
  25. #endif // BOOST_WINAPI_GET_CURRENT_THREAD_ID_HPP_INCLUDED_