]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | // |
2 | // yield_k_test.cpp | |
3 | // | |
4 | // Copyright 2008 Peter Dimov | |
5 | // | |
6 | // Distributed under the Boost Software License, Version 1.0. | |
7 | // See accompanying file LICENSE_1_0.txt or copy at | |
8 | // http://www.boost.org/LICENSE_1_0.txt) | |
9 | // | |
10 | ||
11 | #include <boost/smart_ptr/detail/yield_k.hpp> | |
12 | ||
13 | // Sanity check only | |
14 | ||
15 | int main() | |
16 | { | |
17 | for( unsigned k = 0; k < 256; ++k ) | |
18 | { | |
19 | boost::detail::yield( k ); | |
20 | } | |
21 | ||
22 | return 0; | |
23 | } |