• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_MUTEXATTR_SETTYPE
9//  TITLE:         pthread_mutexattr_settype
10//  DESCRIPTION:   The platform supports POSIX API pthread_mutexattr_settype.
11
12#include <pthread.h>
13
14
15namespace boost_has_pthread_mutexattr_settype{
16
17void f()
18{
19    // this is never called, it just has to compile:
20    pthread_mutexattr_t attr;
21    pthread_mutexattr_init(&attr);
22    int type = 0;
23    pthread_mutexattr_settype(&attr, type);
24}
25
26int test()
27{
28   return 0;
29}
30
31}
32
33
34
35
36
37
38