]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/boost/winapi/thread.hpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / boost / winapi / thread.hpp
CommitLineData
b32b8144
FG
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
9#ifndef BOOST_WINAPI_THREAD_HPP_INCLUDED_
10#define BOOST_WINAPI_THREAD_HPP_INCLUDED_
11
12#include <boost/winapi/basic_types.hpp>
13#include <boost/winapi/get_current_thread.hpp>
14#include <boost/winapi/get_current_thread_id.hpp>
15
16#ifdef BOOST_HAS_PRAGMA_ONCE
17#pragma once
18#endif
19
20#if BOOST_WINAPI_PARTITION_APP_SYSTEM
21
22#if !defined( BOOST_USE_WINDOWS_H )
23extern "C" {
92f5a8d4 24BOOST_SYMBOL_IMPORT boost::winapi::DWORD_ BOOST_WINAPI_WINAPI_CC
b32b8144
FG
25SleepEx(
26 boost::winapi::DWORD_ dwMilliseconds,
27 boost::winapi::BOOL_ bAlertable);
92f5a8d4
TL
28BOOST_SYMBOL_IMPORT boost::winapi::VOID_ BOOST_WINAPI_WINAPI_CC Sleep(boost::winapi::DWORD_ dwMilliseconds);
29BOOST_SYMBOL_IMPORT boost::winapi::BOOL_ BOOST_WINAPI_WINAPI_CC SwitchToThread(BOOST_WINAPI_DETAIL_VOID);
b32b8144
FG
30} // extern "C"
31#endif
32
33namespace boost {
34namespace winapi {
35using ::SleepEx;
36using ::Sleep;
37using ::SwitchToThread;
38}
39}
40
41#endif // BOOST_WINAPI_PARTITION_APP_SYSTEM
42#endif // BOOST_WINAPI_THREAD_HPP_INCLUDED_