mirror of
https://github.com/boostorg/core.git
synced 2025-11-28 21:30:09 +01:00
Add boost/core/yield_primitives.hpp
This commit is contained in:
15
test/sp_thread_sleep_test.cpp
Normal file
15
test/sp_thread_sleep_test.cpp
Normal file
@@ -0,0 +1,15 @@
|
||||
// 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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user