2003-10-14 10:33:24 +00:00
|
|
|
// (C) Copyright John Maddock 2001.
|
|
|
|
// Use, modification and distribution are subject to the
|
|
|
|
// Boost Software License, Version 1.0. (See accompanying file
|
|
|
|
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
|
|
|
|
// See http://www.boost.org/libs/config for most recent version.
|
2001-10-11 12:16:21 +00:00
|
|
|
|
|
|
|
// MACRO: BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
|
2002-01-29 13:48:02 +00:00
|
|
|
// TITLE: pthread_mutexattr_settype
|
|
|
|
// DESCRIPTION: The platform supports POSIX API pthread_mutexattr_settype.
|
2001-10-11 12:16:21 +00:00
|
|
|
|
|
|
|
#include <pthread.h>
|
|
|
|
|
|
|
|
|
2001-10-27 10:55:53 +00:00
|
|
|
namespace boost_has_pthread_mutexattr_settype{
|
2001-10-11 12:16:21 +00:00
|
|
|
|
|
|
|
void f()
|
|
|
|
{
|
|
|
|
// this is never called, it just has to compile:
|
|
|
|
pthread_mutexattr_t attr;
|
|
|
|
pthread_mutexattr_init(&attr);
|
2002-01-29 13:48:02 +00:00
|
|
|
int type = 0;
|
|
|
|
pthread_mutexattr_settype(&attr, type);
|
2001-10-11 12:16:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
int test()
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2001-10-27 10:55:53 +00:00
|
|
|
|
2003-10-14 10:33:24 +00:00
|
|
|
|