Added thread lib config options

[SVN r11374]
This commit is contained in:
John Maddock
2001-10-11 12:16:21 +00:00
parent bb8bb5fb72
commit 5698a3da9c
27 changed files with 899 additions and 2 deletions

View File

@@ -0,0 +1,31 @@
// (C) Copyright John Maddock 2001. Permission to copy, use, modify, sell and
// distribute this software is granted provided this copyright notice appears
// in all copies. This software is provided "as is" without express or implied
// warranty, and with no claim as to its suitability for any purpose.
// MACRO: BOOST_HAS_CLOCK_GETTIME
// TITLE: clock_gettime
// DESCRIPTION: The platform supports POSIX standard API clock_gettime.
#include <time.h>
namespace boost_has_clock_gettime{
void f()
{
// this is never called, it just has to compile:
timespec tp;
int res = clock_gettime(CLOCK_REALTIME, &tp);
}
int test()
{
return 0;
}
}

31
test/boost_has_ftime.ipp Normal file
View File

@@ -0,0 +1,31 @@
// (C) Copyright John Maddock 2001. Permission to copy, use, modify, sell and
// distribute this software is granted provided this copyright notice appears
// in all copies. This software is provided "as is" without express or implied
// warranty, and with no claim as to its suitability for any purpose.
// MACRO: BOOST_HAS_FTIME
// TITLE: GetSystemTimeAsFileTime
// DESCRIPTION: The platform supports Win32 API GetSystemTimeAsFileTime.
#include <windows.h>
namespace boost_has_ftime{
void f()
{
// this is never called, it just has to compile:
FILETIME ft;
GetSystemTimeAsFileTime(&ft);
}
int test()
{
return 0;
}
}

View File

@@ -0,0 +1,31 @@
// (C) Copyright John Maddock 2001. Permission to copy, use, modify, sell and
// distribute this software is granted provided this copyright notice appears
// in all copies. This software is provided "as is" without express or implied
// warranty, and with no claim as to its suitability for any purpose.
// MACRO: BOOST_HAS_GETTIMEOFDAY
// TITLE: gettimeofday
// DESCRIPTION: The platform supports POSIX standard API gettimeofday.
#include <sys/time.h>
namespace boost_has_gettimeofday{
void f()
{
// this is never called, it just has to compile:
timeval tp;
int res = gettimeofday(&tp, 0);
}
int test()
{
return 0;
}
}

View File

@@ -0,0 +1,31 @@
// (C) Copyright John Maddock 2001. Permission to copy, use, modify, sell and
// distribute this software is granted provided this copyright notice appears
// in all copies. This software is provided "as is" without express or implied
// warranty, and with no claim as to its suitability for any purpose.
// MACRO: BOOST_HAS_NANOSLEEP
// TITLE: nanosleep
// DESCRIPTION: The platform supports POSIX API nanosleep.
#include <time.h>
namespace boost_has_nanosleep{
void f()
{
// this is never called, it just has to compile:
timespec ts = {0};
int res = nanosleep(&ts);
}
int test()
{
return 0;
}
}

View File

@@ -0,0 +1,32 @@
// (C) Copyright John Maddock 2001. Permission to copy, use, modify, sell and
// distribute this software is granted provided this copyright notice appears
// in all copies. This software is provided "as is" without express or implied
// warranty, and with no claim as to its suitability for any purpose.
// MACRO: BOOST_HAS_PTHREAD_DELAY_NP
// TITLE: pthread_delay_np
// DESCRIPTION: The platform supports non-standard pthread_delay_np API.
#include <pthread.h>
#include <time.h>
namespace boost_has_pthread_delay_np{
void f()
{
// this is never called, it just has to compile:
timespec ts;
int res = pthread_delay_np(&ts);
}
int test()
{
return 0;
}
}

View File

@@ -0,0 +1,33 @@
// (C) Copyright John Maddock 2001. Permission to copy, use, modify, sell and
// distribute this software is granted provided this copyright notice appears
// in all copies. This software is provided "as is" without express or implied
// warranty, and with no claim as to its suitability for any purpose.
// MACRO: BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
// TITLE: pthread_mutexattr_gettype
// DESCRIPTION: The platform supports POSIX API pthread_mutexattr_gettype.
#include <pthread.h>
namespace boost_has_pthread_mutexattr_gettype{
void f()
{
// this is never called, it just has to compile:
pthread_mutexattr_t attr;
pthread_mutexattr_init(&attr);
int type;
pthread_mutexattr_gettype(&attr, &type);
}
int test()
{
return 0;
}
}

View File

@@ -0,0 +1,30 @@
// (C) Copyright John Maddock 2001. Permission to copy, use, modify, sell and
// distribute this software is granted provided this copyright notice appears
// in all copies. This software is provided "as is" without express or implied
// warranty, and with no claim as to its suitability for any purpose.
// MACRO: BOOST_HAS_PTHREAD_YIELD
// TITLE: pthread_yield
// DESCRIPTION: The platform supports non standard API pthread_yield.
#include <pthread.h>
namespace boost_has_pthread_yield{
void f()
{
// this is never called, it just has to compile:
int res = pthread_yield();
}
int test()
{
return 0;
}
}

View File

@@ -0,0 +1,30 @@
// (C) Copyright John Maddock 2001. Permission to copy, use, modify, sell and
// distribute this software is granted provided this copyright notice appears
// in all copies. This software is provided "as is" without express or implied
// warranty, and with no claim as to its suitability for any purpose.
// MACRO: BOOST_HAS_SCHED_YIELD
// TITLE: sched_yield
// DESCRIPTION: The platform supports POSIX standard API sched_yield.
#include <pthread.h>
namespace boost_has_sched_yield{
void f()
{
// this is never called, it just has to compile:
int res = sched_yield();
}
int test()
{
return 0;
}
}

View File

@@ -821,10 +821,19 @@ void print_boost_macros()
std::cout << "Boost version " << BOOST_STRINGIZE(BOOST_VERSION) << std::endl;
PRINT_MACRO(BOOST_DECL);
PRINT_MACRO(BOOST_HAS_BETHREADS);
PRINT_MACRO(BOOST_HAS_CLOCK_GETTIME);
PRINT_MACRO(BOOST_HAS_FTIME);
PRINT_MACRO(BOOST_HAS_GETTIMEOFDAY);
PRINT_MACRO(BOOST_HAS_HASH);
PRINT_MACRO(BOOST_HAS_MACRO_USE_FACET);
PRINT_MACRO(BOOST_HAS_NANOSLEEP);
PRINT_MACRO(BOOST_HAS_NL_TYPES_H);
PRINT_MACRO(BOOST_HAS_PTHREAD_DELAY_NP);
PRINT_MACRO(BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE);
PRINT_MACRO(BOOST_HAS_PTHREAD_YIELD);
PRINT_MACRO(BOOST_HAS_PTHREADS);
PRINT_MACRO(BOOST_HAS_SCHED_YIELD);
PRINT_MACRO(BOOST_HAS_STDINT_H);
PRINT_MACRO(BOOST_HAS_SLIST);
PRINT_MACRO(BOOST_HAS_STLP_USE_FACET);
PRINT_MACRO(BOOST_HAS_THREADS);
@@ -874,7 +883,6 @@ void print_boost_macros()
PRINT_MACRO(BOOST_NO_USING_TEMPLATE);
PRINT_MACRO(BOOST_NO_VOID_RETURNS);
PRINT_MACRO(BOOST_STD_EXTENSION_NAMESPACE);
PRINT_MACRO(BOOST_HAS_STDINT_H);
}
void print_separator()

View File

@@ -10,7 +10,7 @@
// Do not edit this file, it was generated automatically by
// ../tools/generate from boost_*.cxx on
// Wed Oct 3 13:47:21 2001
// Thu Oct 11 12:24:39 2001
#include <boost/config.hpp>
#define BOOST_INCLUDE_MAIN
@@ -217,6 +217,21 @@ namespace boost_has_two_arg_use_facet = empty_boost;
#else
namespace boost_has_bethreads = empty_boost;
#endif
#ifdef BOOST_HAS_CLOCK_GETTIME
#include "boost_has_clock_gettime.cxx"
#else
namespace boost_has_clock_gettime = empty_boost;
#endif
#ifdef BOOST_HAS_FTIME
#include "boost_has_ftime.cxx"
#else
namespace boost_has_ftime = empty_boost;
#endif
#ifdef BOOST_HAS_GETTIMEOFDAY
#include "boost_has_gettimeofday.cxx"
#else
namespace boost_has_gettimeofday = empty_boost;
#endif
#ifdef BOOST_HAS_HASH
#include "boost_has_hash.cxx"
#else
@@ -227,16 +242,41 @@ namespace boost_has_hash = empty_boost;
#else
namespace boost_has_macro_use_facet = empty_boost;
#endif
#ifdef BOOST_HAS_NANOSLEEP
#include "boost_has_nanosleep.cxx"
#else
namespace boost_has_nanosleep = empty_boost;
#endif
#ifdef BOOST_HAS_NL_TYPES_H
#include "boost_has_nl_types_h.cxx"
#else
namespace boost_has_nl_types_h = empty_boost;
#endif
#ifdef BOOST_HAS_PTHREAD_DELAY_NP
#include "boost_has_pthread_delay_np.cxx"
#else
namespace boost_has_pthread_delay_np = empty_boost;
#endif
#ifdef BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
#include "boost_has_pthread_ma_gt.cxx"
#else
namespace boost_has_pthread_mutexattr_settype = empty_boost;
#endif
#ifdef BOOST_HAS_PTHREAD_YIELD
#include "boost_has_pthread_yield.cxx"
#else
namespace boost_has_pthread_yield = empty_boost;
#endif
#ifdef BOOST_HAS_PTHREADS
#include "boost_has_pthreads.cxx"
#else
namespace boost_has_pthreads = empty_boost;
#endif
#ifdef BOOST_HAS_SCHED_YIELD
#include "boost_has_sched_yield.cxx"
#else
namespace boost_has_sched_yield = empty_boost;
#endif
#ifdef BOOST_HAS_SLIST
#include "boost_has_slist.cxx"
#else
@@ -320,10 +360,18 @@ int test_main( int, char *[] )
BOOST_TEST(0 == boost_has_stlp_use_facet::test());
BOOST_TEST(0 == boost_has_stdint_h::test());
BOOST_TEST(0 == boost_has_slist::test());
BOOST_TEST(0 == boost_has_sched_yield::test());
BOOST_TEST(0 == boost_has_pthreads::test());
BOOST_TEST(0 == boost_has_pthread_yield::test());
BOOST_TEST(0 == boost_has_pthread_mutexattr_settype::test());
BOOST_TEST(0 == boost_has_pthread_delay_np::test());
BOOST_TEST(0 == boost_has_nl_types_h::test());
BOOST_TEST(0 == boost_has_nanosleep::test());
BOOST_TEST(0 == boost_has_macro_use_facet::test());
BOOST_TEST(0 == boost_has_hash::test());
BOOST_TEST(0 == boost_has_gettimeofday::test());
BOOST_TEST(0 == boost_has_ftime::test());
BOOST_TEST(0 == boost_has_clock_gettime::test());
BOOST_TEST(0 == boost_has_bethreads::test());
BOOST_TEST(0 == boost_has_two_arg_use_facet::test());
return 0;

View File

@@ -0,0 +1,36 @@
// (C) Copyright Boost.org 1999. Permission to copy, use, modify, sell and
// distribute this software is granted provided this copyright notice appears
// in all copies. This software is provided "as is" without express or implied
// warranty, and with no claim as to its suitability for any purpose.
// Test file for macro BOOST_HAS_CLOCK_GETTIME
// This file should not compile, if it does then
// BOOST_HAS_CLOCK_GETTIME may be defined.
// see boost_has_clock_gettime.cxx for more details
// Do not edit this file, it was generated automatically by
// ../tools/generate from boost_has_clock_gettime.cxx on
// Thu Oct 11 12:24:39 2001
// Must not have BOOST_ASSERT_CONFIG set; it defeats
// the objective of this file:
#ifdef BOOST_ASSERT_CONFIG
# undef BOOST_ASSERT_CONFIG
#endif
#include <boost/config.hpp>
#include <boost/test/cpp_main.cpp>
#include "test.hpp"
#ifndef BOOST_HAS_CLOCK_GETTIME
#include "boost_has_clock_gettime.cxx"
#else
#error "this file should not compile"
#endif
int cpp_main( int, char *[] )
{
return boost_has_clock_gettime::test();
}

View File

@@ -0,0 +1,36 @@
// (C) Copyright Boost.org 1999. Permission to copy, use, modify, sell and
// distribute this software is granted provided this copyright notice appears
// in all copies. This software is provided "as is" without express or implied
// warranty, and with no claim as to its suitability for any purpose.
// Test file for macro BOOST_HAS_CLOCK_GETTIME
// This file should compile, if it does not then
// BOOST_HAS_CLOCK_GETTIME should not be defined.
// see boost_has_clock_gettime.cxx for more details
// Do not edit this file, it was generated automatically by
// ../tools/generate from boost_has_clock_gettime.cxx on
// Thu Oct 11 12:24:39 2001
// Must not have BOOST_ASSERT_CONFIG set; it defeats
// the objective of this file:
#ifdef BOOST_ASSERT_CONFIG
# undef BOOST_ASSERT_CONFIG
#endif
#include <boost/config.hpp>
#include <boost/test/cpp_main.cpp>
#include "test.hpp"
#ifdef BOOST_HAS_CLOCK_GETTIME
#include "boost_has_clock_gettime.cxx"
#else
namespace boost_has_clock_gettime = empty_boost;
#endif
int cpp_main( int, char *[] )
{
return boost_has_clock_gettime::test();
}

36
test/has_ftime_fail.cpp Normal file
View File

@@ -0,0 +1,36 @@
// (C) Copyright Boost.org 1999. Permission to copy, use, modify, sell and
// distribute this software is granted provided this copyright notice appears
// in all copies. This software is provided "as is" without express or implied
// warranty, and with no claim as to its suitability for any purpose.
// Test file for macro BOOST_HAS_FTIME
// This file should not compile, if it does then
// BOOST_HAS_FTIME may be defined.
// see boost_has_ftime.cxx for more details
// Do not edit this file, it was generated automatically by
// ../tools/generate from boost_has_ftime.cxx on
// Thu Oct 11 12:24:39 2001
// Must not have BOOST_ASSERT_CONFIG set; it defeats
// the objective of this file:
#ifdef BOOST_ASSERT_CONFIG
# undef BOOST_ASSERT_CONFIG
#endif
#include <boost/config.hpp>
#include <boost/test/cpp_main.cpp>
#include "test.hpp"
#ifndef BOOST_HAS_FTIME
#include "boost_has_ftime.cxx"
#else
#error "this file should not compile"
#endif
int cpp_main( int, char *[] )
{
return boost_has_ftime::test();
}

36
test/has_ftime_pass.cpp Normal file
View File

@@ -0,0 +1,36 @@
// (C) Copyright Boost.org 1999. Permission to copy, use, modify, sell and
// distribute this software is granted provided this copyright notice appears
// in all copies. This software is provided "as is" without express or implied
// warranty, and with no claim as to its suitability for any purpose.
// Test file for macro BOOST_HAS_FTIME
// This file should compile, if it does not then
// BOOST_HAS_FTIME should not be defined.
// see boost_has_ftime.cxx for more details
// Do not edit this file, it was generated automatically by
// ../tools/generate from boost_has_ftime.cxx on
// Thu Oct 11 12:24:39 2001
// Must not have BOOST_ASSERT_CONFIG set; it defeats
// the objective of this file:
#ifdef BOOST_ASSERT_CONFIG
# undef BOOST_ASSERT_CONFIG
#endif
#include <boost/config.hpp>
#include <boost/test/cpp_main.cpp>
#include "test.hpp"
#ifdef BOOST_HAS_FTIME
#include "boost_has_ftime.cxx"
#else
namespace boost_has_ftime = empty_boost;
#endif
int cpp_main( int, char *[] )
{
return boost_has_ftime::test();
}

View File

@@ -0,0 +1,36 @@
// (C) Copyright Boost.org 1999. Permission to copy, use, modify, sell and
// distribute this software is granted provided this copyright notice appears
// in all copies. This software is provided "as is" without express or implied
// warranty, and with no claim as to its suitability for any purpose.
// Test file for macro BOOST_HAS_GETTIMEOFDAY
// This file should not compile, if it does then
// BOOST_HAS_GETTIMEOFDAY may be defined.
// see boost_has_gettimeofday.cxx for more details
// Do not edit this file, it was generated automatically by
// ../tools/generate from boost_has_gettimeofday.cxx on
// Thu Oct 11 12:24:39 2001
// Must not have BOOST_ASSERT_CONFIG set; it defeats
// the objective of this file:
#ifdef BOOST_ASSERT_CONFIG
# undef BOOST_ASSERT_CONFIG
#endif
#include <boost/config.hpp>
#include <boost/test/cpp_main.cpp>
#include "test.hpp"
#ifndef BOOST_HAS_GETTIMEOFDAY
#include "boost_has_gettimeofday.cxx"
#else
#error "this file should not compile"
#endif
int cpp_main( int, char *[] )
{
return boost_has_gettimeofday::test();
}

View File

@@ -0,0 +1,36 @@
// (C) Copyright Boost.org 1999. Permission to copy, use, modify, sell and
// distribute this software is granted provided this copyright notice appears
// in all copies. This software is provided "as is" without express or implied
// warranty, and with no claim as to its suitability for any purpose.
// Test file for macro BOOST_HAS_GETTIMEOFDAY
// This file should compile, if it does not then
// BOOST_HAS_GETTIMEOFDAY should not be defined.
// see boost_has_gettimeofday.cxx for more details
// Do not edit this file, it was generated automatically by
// ../tools/generate from boost_has_gettimeofday.cxx on
// Thu Oct 11 12:24:39 2001
// Must not have BOOST_ASSERT_CONFIG set; it defeats
// the objective of this file:
#ifdef BOOST_ASSERT_CONFIG
# undef BOOST_ASSERT_CONFIG
#endif
#include <boost/config.hpp>
#include <boost/test/cpp_main.cpp>
#include "test.hpp"
#ifdef BOOST_HAS_GETTIMEOFDAY
#include "boost_has_gettimeofday.cxx"
#else
namespace boost_has_gettimeofday = empty_boost;
#endif
int cpp_main( int, char *[] )
{
return boost_has_gettimeofday::test();
}

View File

@@ -0,0 +1,36 @@
// (C) Copyright Boost.org 1999. Permission to copy, use, modify, sell and
// distribute this software is granted provided this copyright notice appears
// in all copies. This software is provided "as is" without express or implied
// warranty, and with no claim as to its suitability for any purpose.
// Test file for macro BOOST_HAS_NANOSLEEP
// This file should not compile, if it does then
// BOOST_HAS_NANOSLEEP may be defined.
// see boost_has_nanosleep.cxx for more details
// Do not edit this file, it was generated automatically by
// ../tools/generate from boost_has_nanosleep.cxx on
// Thu Oct 11 12:24:39 2001
// Must not have BOOST_ASSERT_CONFIG set; it defeats
// the objective of this file:
#ifdef BOOST_ASSERT_CONFIG
# undef BOOST_ASSERT_CONFIG
#endif
#include <boost/config.hpp>
#include <boost/test/cpp_main.cpp>
#include "test.hpp"
#ifndef BOOST_HAS_NANOSLEEP
#include "boost_has_nanosleep.cxx"
#else
#error "this file should not compile"
#endif
int cpp_main( int, char *[] )
{
return boost_has_nanosleep::test();
}

View File

@@ -0,0 +1,36 @@
// (C) Copyright Boost.org 1999. Permission to copy, use, modify, sell and
// distribute this software is granted provided this copyright notice appears
// in all copies. This software is provided "as is" without express or implied
// warranty, and with no claim as to its suitability for any purpose.
// Test file for macro BOOST_HAS_NANOSLEEP
// This file should compile, if it does not then
// BOOST_HAS_NANOSLEEP should not be defined.
// see boost_has_nanosleep.cxx for more details
// Do not edit this file, it was generated automatically by
// ../tools/generate from boost_has_nanosleep.cxx on
// Thu Oct 11 12:24:39 2001
// Must not have BOOST_ASSERT_CONFIG set; it defeats
// the objective of this file:
#ifdef BOOST_ASSERT_CONFIG
# undef BOOST_ASSERT_CONFIG
#endif
#include <boost/config.hpp>
#include <boost/test/cpp_main.cpp>
#include "test.hpp"
#ifdef BOOST_HAS_NANOSLEEP
#include "boost_has_nanosleep.cxx"
#else
namespace boost_has_nanosleep = empty_boost;
#endif
int cpp_main( int, char *[] )
{
return boost_has_nanosleep::test();
}

View File

@@ -0,0 +1,36 @@
// (C) Copyright Boost.org 1999. Permission to copy, use, modify, sell and
// distribute this software is granted provided this copyright notice appears
// in all copies. This software is provided "as is" without express or implied
// warranty, and with no claim as to its suitability for any purpose.
// Test file for macro BOOST_HAS_PTHREAD_DELAY_NP
// This file should not compile, if it does then
// BOOST_HAS_PTHREAD_DELAY_NP may be defined.
// see boost_has_pthread_delay_np.cxx for more details
// Do not edit this file, it was generated automatically by
// ../tools/generate from boost_has_pthread_delay_np.cxx on
// Thu Oct 11 12:24:39 2001
// Must not have BOOST_ASSERT_CONFIG set; it defeats
// the objective of this file:
#ifdef BOOST_ASSERT_CONFIG
# undef BOOST_ASSERT_CONFIG
#endif
#include <boost/config.hpp>
#include <boost/test/cpp_main.cpp>
#include "test.hpp"
#ifndef BOOST_HAS_PTHREAD_DELAY_NP
#include "boost_has_pthread_delay_np.cxx"
#else
#error "this file should not compile"
#endif
int cpp_main( int, char *[] )
{
return boost_has_pthread_delay_np::test();
}

View File

@@ -0,0 +1,36 @@
// (C) Copyright Boost.org 1999. Permission to copy, use, modify, sell and
// distribute this software is granted provided this copyright notice appears
// in all copies. This software is provided "as is" without express or implied
// warranty, and with no claim as to its suitability for any purpose.
// Test file for macro BOOST_HAS_PTHREAD_DELAY_NP
// This file should compile, if it does not then
// BOOST_HAS_PTHREAD_DELAY_NP should not be defined.
// see boost_has_pthread_delay_np.cxx for more details
// Do not edit this file, it was generated automatically by
// ../tools/generate from boost_has_pthread_delay_np.cxx on
// Thu Oct 11 12:24:39 2001
// Must not have BOOST_ASSERT_CONFIG set; it defeats
// the objective of this file:
#ifdef BOOST_ASSERT_CONFIG
# undef BOOST_ASSERT_CONFIG
#endif
#include <boost/config.hpp>
#include <boost/test/cpp_main.cpp>
#include "test.hpp"
#ifdef BOOST_HAS_PTHREAD_DELAY_NP
#include "boost_has_pthread_delay_np.cxx"
#else
namespace boost_has_pthread_delay_np = empty_boost;
#endif
int cpp_main( int, char *[] )
{
return boost_has_pthread_delay_np::test();
}

View File

@@ -0,0 +1,36 @@
// (C) Copyright Boost.org 1999. Permission to copy, use, modify, sell and
// distribute this software is granted provided this copyright notice appears
// in all copies. This software is provided "as is" without express or implied
// warranty, and with no claim as to its suitability for any purpose.
// Test file for macro BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
// This file should not compile, if it does then
// BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE may be defined.
// see boost_has_pthread_ma_gt.cxx for more details
// Do not edit this file, it was generated automatically by
// ../tools/generate from boost_has_pthread_ma_gt.cxx on
// Thu Oct 11 12:24:39 2001
// Must not have BOOST_ASSERT_CONFIG set; it defeats
// the objective of this file:
#ifdef BOOST_ASSERT_CONFIG
# undef BOOST_ASSERT_CONFIG
#endif
#include <boost/config.hpp>
#include <boost/test/cpp_main.cpp>
#include "test.hpp"
#ifndef BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
#include "boost_has_pthread_ma_gt.cxx"
#else
#error "this file should not compile"
#endif
int cpp_main( int, char *[] )
{
return boost_has_pthread_mutexattr_settype::test();
}

View File

@@ -0,0 +1,36 @@
// (C) Copyright Boost.org 1999. Permission to copy, use, modify, sell and
// distribute this software is granted provided this copyright notice appears
// in all copies. This software is provided "as is" without express or implied
// warranty, and with no claim as to its suitability for any purpose.
// Test file for macro BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
// This file should compile, if it does not then
// BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE should not be defined.
// see boost_has_pthread_ma_gt.cxx for more details
// Do not edit this file, it was generated automatically by
// ../tools/generate from boost_has_pthread_ma_gt.cxx on
// Thu Oct 11 12:24:39 2001
// Must not have BOOST_ASSERT_CONFIG set; it defeats
// the objective of this file:
#ifdef BOOST_ASSERT_CONFIG
# undef BOOST_ASSERT_CONFIG
#endif
#include <boost/config.hpp>
#include <boost/test/cpp_main.cpp>
#include "test.hpp"
#ifdef BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
#include "boost_has_pthread_ma_gt.cxx"
#else
namespace boost_has_pthread_mutexattr_settype = empty_boost;
#endif
int cpp_main( int, char *[] )
{
return boost_has_pthread_mutexattr_settype::test();
}

View File

@@ -0,0 +1,36 @@
// (C) Copyright Boost.org 1999. Permission to copy, use, modify, sell and
// distribute this software is granted provided this copyright notice appears
// in all copies. This software is provided "as is" without express or implied
// warranty, and with no claim as to its suitability for any purpose.
// Test file for macro BOOST_HAS_PTHREAD_YIELD
// This file should not compile, if it does then
// BOOST_HAS_PTHREAD_YIELD may be defined.
// see boost_has_pthread_yield.cxx for more details
// Do not edit this file, it was generated automatically by
// ../tools/generate from boost_has_pthread_yield.cxx on
// Thu Oct 11 12:24:39 2001
// Must not have BOOST_ASSERT_CONFIG set; it defeats
// the objective of this file:
#ifdef BOOST_ASSERT_CONFIG
# undef BOOST_ASSERT_CONFIG
#endif
#include <boost/config.hpp>
#include <boost/test/cpp_main.cpp>
#include "test.hpp"
#ifndef BOOST_HAS_PTHREAD_YIELD
#include "boost_has_pthread_yield.cxx"
#else
#error "this file should not compile"
#endif
int cpp_main( int, char *[] )
{
return boost_has_pthread_yield::test();
}

View File

@@ -0,0 +1,36 @@
// (C) Copyright Boost.org 1999. Permission to copy, use, modify, sell and
// distribute this software is granted provided this copyright notice appears
// in all copies. This software is provided "as is" without express or implied
// warranty, and with no claim as to its suitability for any purpose.
// Test file for macro BOOST_HAS_PTHREAD_YIELD
// This file should compile, if it does not then
// BOOST_HAS_PTHREAD_YIELD should not be defined.
// see boost_has_pthread_yield.cxx for more details
// Do not edit this file, it was generated automatically by
// ../tools/generate from boost_has_pthread_yield.cxx on
// Thu Oct 11 12:24:39 2001
// Must not have BOOST_ASSERT_CONFIG set; it defeats
// the objective of this file:
#ifdef BOOST_ASSERT_CONFIG
# undef BOOST_ASSERT_CONFIG
#endif
#include <boost/config.hpp>
#include <boost/test/cpp_main.cpp>
#include "test.hpp"
#ifdef BOOST_HAS_PTHREAD_YIELD
#include "boost_has_pthread_yield.cxx"
#else
namespace boost_has_pthread_yield = empty_boost;
#endif
int cpp_main( int, char *[] )
{
return boost_has_pthread_yield::test();
}

View File

@@ -0,0 +1,36 @@
// (C) Copyright Boost.org 1999. Permission to copy, use, modify, sell and
// distribute this software is granted provided this copyright notice appears
// in all copies. This software is provided "as is" without express or implied
// warranty, and with no claim as to its suitability for any purpose.
// Test file for macro BOOST_HAS_SCHED_YIELD
// This file should not compile, if it does then
// BOOST_HAS_SCHED_YIELD may be defined.
// see boost_has_sched_yield.cxx for more details
// Do not edit this file, it was generated automatically by
// ../tools/generate from boost_has_sched_yield.cxx on
// Thu Oct 11 12:24:39 2001
// Must not have BOOST_ASSERT_CONFIG set; it defeats
// the objective of this file:
#ifdef BOOST_ASSERT_CONFIG
# undef BOOST_ASSERT_CONFIG
#endif
#include <boost/config.hpp>
#include <boost/test/cpp_main.cpp>
#include "test.hpp"
#ifndef BOOST_HAS_SCHED_YIELD
#include "boost_has_sched_yield.cxx"
#else
#error "this file should not compile"
#endif
int cpp_main( int, char *[] )
{
return boost_has_sched_yield::test();
}

View File

@@ -0,0 +1,36 @@
// (C) Copyright Boost.org 1999. Permission to copy, use, modify, sell and
// distribute this software is granted provided this copyright notice appears
// in all copies. This software is provided "as is" without express or implied
// warranty, and with no claim as to its suitability for any purpose.
// Test file for macro BOOST_HAS_SCHED_YIELD
// This file should compile, if it does not then
// BOOST_HAS_SCHED_YIELD should not be defined.
// see boost_has_sched_yield.cxx for more details
// Do not edit this file, it was generated automatically by
// ../tools/generate from boost_has_sched_yield.cxx on
// Thu Oct 11 12:24:39 2001
// Must not have BOOST_ASSERT_CONFIG set; it defeats
// the objective of this file:
#ifdef BOOST_ASSERT_CONFIG
# undef BOOST_ASSERT_CONFIG
#endif
#include <boost/config.hpp>
#include <boost/test/cpp_main.cpp>
#include "test.hpp"
#ifdef BOOST_HAS_SCHED_YIELD
#include "boost_has_sched_yield.cxx"
#else
namespace boost_has_sched_yield = empty_boost;
#endif
int cpp_main( int, char *[] )
{
return boost_has_sched_yield::test();
}

View File

@@ -85,14 +85,30 @@ run libs/config/test/has_2arg_use_facet_pass.cpp
link-fail libs/config/test/has_2arg_use_facet_fail.cpp
run libs/config/test/has_bethreads_pass.cpp
link-fail libs/config/test/has_bethreads_fail.cpp
run libs/config/test/has_clock_gettime_pass.cpp
link-fail libs/config/test/has_clock_gettime_fail.cpp
run libs/config/test/has_ftime_pass.cpp
link-fail libs/config/test/has_ftime_fail.cpp
run libs/config/test/has_gettimeofday_pass.cpp
link-fail libs/config/test/has_gettimeofday_fail.cpp
run libs/config/test/has_hash_pass.cpp
link-fail libs/config/test/has_hash_fail.cpp
run libs/config/test/has_macro_use_facet_pass.cpp
link-fail libs/config/test/has_macro_use_facet_fail.cpp
run libs/config/test/has_nanosleep_pass.cpp
link-fail libs/config/test/has_nanosleep_fail.cpp
run libs/config/test/has_nl_types_h_pass.cpp
link-fail libs/config/test/has_nl_types_h_fail.cpp
run libs/config/test/has_pthread_delay_np_pass.cpp
link-fail libs/config/test/has_pthread_delay_np_fail.cpp
run libs/config/test/has_pthread_ma_gt_pass.cpp
link-fail libs/config/test/has_pthread_ma_gt_fail.cpp
run libs/config/test/has_pthread_yield_pass.cpp
link-fail libs/config/test/has_pthread_yield_fail.cpp
run libs/config/test/has_pthreads_pass.cpp
link-fail libs/config/test/has_pthreads_fail.cpp
run libs/config/test/has_sched_yield_pass.cpp
link-fail libs/config/test/has_sched_yield_fail.cpp
run libs/config/test/has_slist_pass.cpp
link-fail libs/config/test/has_slist_fail.cpp
run libs/config/test/has_stdint_h_pass.cpp