Files
core/test/sp_thread_pause_test.cpp
2023-06-01 23:08:32 +03:00

16 lines
315 B
C++

// Test for sp_thread_pause
//
// Copyright 2023 Peter Dimov
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt
#include <boost/core/yield_primitives.hpp>
int main()
{
for( int i = 0; i < 1048576; ++i )
{
boost::core::sp_thread_pause();
}
}