mirror of
https://github.com/boostorg/core.git
synced 2025-11-28 21:30:09 +01:00
16 lines
312 B
C++
16 lines
312 B
C++
|
|
// 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 < 1000; ++i )
|
||
|
|
{
|
||
|
|
boost::core::sp_thread_sleep();
|
||
|
|
}
|
||
|
|
}
|