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_DELAY_NP
9//  TITLE:         pthread_delay_np
10//  DESCRIPTION:   The platform supports non-standard pthread_delay_np API.
11
12#include <pthread.h>
13#include <time.h>
14
15
16namespace boost_has_pthread_delay_np{
17
18void f()
19{
20    // this is never called, it just has to compile:
21    timespec ts;
22    int res = pthread_delay_np(&ts);
23}
24
25int test()
26{
27   return 0;
28}
29
30}
31
32
33
34
35
36