2
0
mirror of https://github.com/boostorg/core.git synced 2026-01-19 04:02:18 +00:00
Files
core/test/yield_prim_windows_h_test.cpp
2023-06-01 23:08:32 +03:00

19 lines
427 B
C++

// Test for sp_thread_yield
//
// Copyright 2023 Peter Dimov
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt
#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
# include <windows.h>
#endif
#include <boost/core/yield_primitives.hpp>
int main()
{
boost::core::sp_thread_pause();
boost::core::sp_thread_yield();
boost::core::sp_thread_sleep();
}