Added Mac Carbon implementation to Boost.Threads.

[SVN r12480]
This commit is contained in:
William E. Kempf
2002-01-24 16:32:23 +00:00
parent 78793dd2ba
commit b9cd52c6a2
2 changed files with 19 additions and 2 deletions

View File

@ -39,5 +39,21 @@
# define BOOST_NO_STDC_NAMESPACE # define BOOST_NO_STDC_NAMESPACE
# endif # endif
#endif #else
// We will eventually support threads in non-Carbon builds, but we do
// not support this yet.
# if TARGET_CARBON
# define BOOST_HAS_MPTASKS
// The MP task implementation of Boost Threads aims to replace MP-unsafe
// parts of the MSL, so we turn on threads unconditionally.
# define BOOST_HAS_THREADS
// The remote call manager depends on this.
# define BOOST_BIND_ENABLE_PASCAL
# endif
#endif

View File

@ -144,7 +144,8 @@
// Turn threading support off if we don't recognise the threading API: // Turn threading support off if we don't recognise the threading API:
// //
#if defined(BOOST_HAS_THREADS) && !defined(BOOST_HAS_PTHREADS)\ #if defined(BOOST_HAS_THREADS) && !defined(BOOST_HAS_PTHREADS)\
&& !defined(BOOST_HAS_WINTHREADS) && !defined(BOOST_HAS_BETHREADS) && !defined(BOOST_HAS_WINTHREADS) && !defined(BOOST_HAS_BETHREADS)\
&& !defined(BOOST_HAS_MPTASKS)
# undef BOOST_HAS_THREADS # undef BOOST_HAS_THREADS
#endif #endif