Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:53:47

0001 /*
0002  * Copyright 2010 Vicente J. Botet Escriba
0003  * Copyright 2015 Andrey Semashev
0004  *
0005  * Distributed under the Boost Software License, Version 1.0.
0006  * See http://www.boost.org/LICENSE_1_0.txt
0007  */
0008 
0009 #ifndef BOOST_WINAPI_GET_THREAD_TIMES_HPP_INCLUDED_
0010 #define BOOST_WINAPI_GET_THREAD_TIMES_HPP_INCLUDED_
0011 
0012 #include <boost/winapi/basic_types.hpp>
0013 #include <boost/winapi/time.hpp>
0014 
0015 #ifdef BOOST_HAS_PRAGMA_ONCE
0016 #pragma once
0017 #endif
0018 
0019 #if BOOST_WINAPI_PARTITION_APP_SYSTEM
0020 
0021 #include <boost/winapi/detail/header.hpp>
0022 
0023 #if !defined( BOOST_USE_WINDOWS_H )
0024 extern "C" {
0025 BOOST_WINAPI_IMPORT_EXCEPT_WM boost::winapi::BOOL_ BOOST_WINAPI_WINAPI_CC
0026 GetThreadTimes(
0027     boost::winapi::HANDLE_ hThread,
0028     ::_FILETIME* lpCreationTime,
0029     ::_FILETIME* lpExitTime,
0030     ::_FILETIME* lpKernelTime,
0031     ::_FILETIME* lpUserTime);
0032 }
0033 #endif
0034 
0035 namespace boost {
0036 namespace winapi {
0037 
0038 BOOST_FORCEINLINE BOOL_ GetThreadTimes(
0039     HANDLE_ hThread,
0040     LPFILETIME_ lpCreationTime,
0041     LPFILETIME_ lpExitTime,
0042     LPFILETIME_ lpKernelTime,
0043     LPFILETIME_ lpUserTime)
0044 {
0045     return ::GetThreadTimes(
0046         hThread,
0047         reinterpret_cast< ::_FILETIME* >(lpCreationTime),
0048         reinterpret_cast< ::_FILETIME* >(lpExitTime),
0049         reinterpret_cast< ::_FILETIME* >(lpKernelTime),
0050         reinterpret_cast< ::_FILETIME* >(lpUserTime));
0051 }
0052 
0053 }
0054 }
0055 
0056 #include <boost/winapi/detail/footer.hpp>
0057 
0058 #endif // BOOST_WINAPI_PARTITION_APP_SYSTEM
0059 #endif // BOOST_WINAPI_GET_THREAD_TIMES_HPP_INCLUDED_