1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/stdapis/boost/detail/lightweight_mutex.hpp Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -0,0 +1,42 @@
1.4 +#ifndef BOOST_DETAIL_LIGHTWEIGHT_MUTEX_HPP_INCLUDED
1.5 +#define BOOST_DETAIL_LIGHTWEIGHT_MUTEX_HPP_INCLUDED
1.6 +
1.7 +// MS compatible compilers support #pragma once
1.8 +
1.9 +#if defined(_MSC_VER) && (_MSC_VER >= 1020)
1.10 +# pragma once
1.11 +#endif
1.12 +
1.13 +//
1.14 +// boost/detail/lightweight_mutex.hpp - lightweight mutex
1.15 +//
1.16 +// Copyright (c) 2002, 2003 Peter Dimov and Multi Media Ltd.
1.17 +//
1.18 +// Distributed under the Boost Software License, Version 1.0. (See
1.19 +// accompanying file LICENSE_1_0.txt or copy at
1.20 +// http://www.boost.org/LICENSE_1_0.txt)
1.21 +//
1.22 +// typedef <unspecified> boost::detail::lightweight_mutex;
1.23 +//
1.24 +// boost::detail::lightweight_mutex is a header-only implementation of
1.25 +// a subset of the Mutex concept requirements:
1.26 +//
1.27 +// http://www.boost.org/doc/html/threads/concepts.html#threads.concepts.Mutex
1.28 +//
1.29 +// It maps to a CRITICAL_SECTION on Windows or a pthread_mutex on POSIX.
1.30 +//
1.31 +
1.32 +#include <boost/config.hpp>
1.33 +
1.34 +#if !defined(BOOST_HAS_THREADS)
1.35 +# include <boost/detail/lwm_nop.hpp>
1.36 +#elif defined(WIN32) || defined(_WIN32) || defined(__WIN32__)
1.37 +# include <boost/detail/lwm_win32_cs.hpp>
1.38 +#elif defined(BOOST_HAS_PTHREADS)
1.39 +# include <boost/detail/lwm_pthreads.hpp>
1.40 +#else
1.41 +// Use #define BOOST_DISABLE_THREADS to avoid the error
1.42 +# error Unrecognized threading platform
1.43 +#endif
1.44 +
1.45 +#endif // #ifndef BOOST_DETAIL_LIGHTWEIGHT_MUTEX_HPP_INCLUDED