]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/config/test/boost_has_pthread_yield.ipp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / config / test / boost_has_pthread_yield.ipp
1 // (C) Copyright John Maddock 2001.
2 // Use, modification and distribution are subject to the
3 // Boost Software License, Version 1.0. (See accompanying file
4 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5
6 // See http://www.boost.org/libs/config for most recent version.
7
8 // MACRO: BOOST_HAS_PTHREAD_YIELD
9 // TITLE: pthread_yield
10 // DESCRIPTION: The platform supports non standard API pthread_yield.
11
12 #include <pthread.h>
13
14
15 namespace boost_has_pthread_yield{
16
17 void f()
18 {
19 // this is never called, it just has to compile:
20 int res = pthread_yield();
21 (void)res;
22 }
23
24 int test()
25 {
26 return 0;
27 }
28
29 }
30
31
32
33
34