1// Test for yield_primitives.hpp compatibility with windows.h
2//
3// Copyright 2023 Peter Dimov
4// Distributed under the Boost Software License, Version 1.0.
5// https://www.boost.org/LICENSE_1_0.txt
6
7#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
8# include <windows.h>
9#endif
10
11#include <boost/core/yield_primitives.hpp>
12
13int main()
14{
15 boost::core::sp_thread_pause();
16 boost::core::sp_thread_yield();
17 boost::core::sp_thread_sleep();
18}
19

source code of boost/libs/core/test/yield_prim_windows_h_test.cpp