Files
core/test/sp_thread_sleep_test.cpp

16 lines
311 B
C++
Raw Normal View History

2023-06-01 23:08:32 +03:00
// Test for sp_thread_sleep
//
// 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 < 100; ++i )
2023-06-01 23:08:32 +03:00
{
boost::core::sp_thread_sleep();
}
}