Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/generic/include/boost/detail/winapi/tls.hpp @ 125:34e428693f5d vext
Vext -> Repoint
author | Chris Cannam |
---|---|
date | Thu, 14 Jun 2018 11:15:39 +0100 |
parents | f46d142149f5 |
children |
rev | line source |
---|---|
Chris@102 | 1 // tls.hpp --------------------------------------------------------------// |
Chris@102 | 2 |
Chris@102 | 3 // Copyright 2013 Andrey Semashev |
Chris@102 | 4 |
Chris@102 | 5 // Distributed under the Boost Software License, Version 1.0. |
Chris@102 | 6 // See http://www.boost.org/LICENSE_1_0.txt |
Chris@102 | 7 |
Chris@102 | 8 |
Chris@102 | 9 #ifndef BOOST_DETAIL_WINAPI_TLS_HPP |
Chris@102 | 10 #define BOOST_DETAIL_WINAPI_TLS_HPP |
Chris@102 | 11 |
Chris@102 | 12 #include <boost/detail/winapi/basic_types.hpp> |
Chris@102 | 13 |
Chris@102 | 14 #ifdef BOOST_HAS_PRAGMA_ONCE |
Chris@102 | 15 #pragma once |
Chris@102 | 16 #endif |
Chris@102 | 17 |
Chris@102 | 18 namespace boost |
Chris@102 | 19 { |
Chris@102 | 20 namespace detail |
Chris@102 | 21 { |
Chris@102 | 22 namespace winapi |
Chris@102 | 23 { |
Chris@102 | 24 #if defined( BOOST_USE_WINDOWS_H ) |
Chris@102 | 25 |
Chris@102 | 26 using ::TlsAlloc; |
Chris@102 | 27 using ::TlsGetValue; |
Chris@102 | 28 using ::TlsSetValue; |
Chris@102 | 29 using ::TlsFree; |
Chris@102 | 30 |
Chris@102 | 31 const DWORD_ tls_out_of_indexes = TLS_OUT_OF_INDEXES; |
Chris@102 | 32 |
Chris@102 | 33 #else |
Chris@102 | 34 |
Chris@102 | 35 extern "C" { |
Chris@102 | 36 __declspec(dllimport) DWORD_ WINAPI TlsAlloc(void); |
Chris@102 | 37 __declspec(dllimport) LPVOID_ WINAPI TlsGetValue(DWORD_ dwTlsIndex); |
Chris@102 | 38 __declspec(dllimport) BOOL_ WINAPI TlsSetValue(DWORD_ dwTlsIndex, LPVOID_ lpTlsValue); |
Chris@102 | 39 __declspec(dllimport) BOOL_ WINAPI TlsFree(DWORD_ dwTlsIndex); |
Chris@102 | 40 } |
Chris@102 | 41 |
Chris@102 | 42 const DWORD_ tls_out_of_indexes = 0xFFFFFFFF; |
Chris@102 | 43 |
Chris@102 | 44 #endif |
Chris@102 | 45 } |
Chris@102 | 46 } |
Chris@102 | 47 } |
Chris@102 | 48 |
Chris@102 | 49 #endif // BOOST_DETAIL_WINAPI_TLS_HPP |