epoc32/include/stdapis/boost/detail/lightweight_mutex.hpp
author William Roberts <williamr@symbian.org>
Tue, 16 Mar 2010 16:12:26 +0000
branchSymbian2
changeset 2 2fe1408b6811
permissions -rw-r--r--
Final list of Symbian^2 public API header files
williamr@2
     1
#ifndef BOOST_DETAIL_LIGHTWEIGHT_MUTEX_HPP_INCLUDED
williamr@2
     2
#define BOOST_DETAIL_LIGHTWEIGHT_MUTEX_HPP_INCLUDED
williamr@2
     3
williamr@2
     4
// MS compatible compilers support #pragma once
williamr@2
     5
williamr@2
     6
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
williamr@2
     7
# pragma once
williamr@2
     8
#endif
williamr@2
     9
williamr@2
    10
//
williamr@2
    11
//  boost/detail/lightweight_mutex.hpp - lightweight mutex
williamr@2
    12
//
williamr@2
    13
//  Copyright (c) 2002, 2003 Peter Dimov and Multi Media Ltd.
williamr@2
    14
//
williamr@2
    15
// Distributed under the Boost Software License, Version 1.0. (See
williamr@2
    16
// accompanying file LICENSE_1_0.txt or copy at
williamr@2
    17
// http://www.boost.org/LICENSE_1_0.txt)
williamr@2
    18
//
williamr@2
    19
//  typedef <unspecified> boost::detail::lightweight_mutex;
williamr@2
    20
//
williamr@2
    21
//  boost::detail::lightweight_mutex is a header-only implementation of
williamr@2
    22
//  a subset of the Mutex concept requirements:
williamr@2
    23
//
williamr@2
    24
//  http://www.boost.org/doc/html/threads/concepts.html#threads.concepts.Mutex
williamr@2
    25
//
williamr@2
    26
//  It maps to a CRITICAL_SECTION on Windows or a pthread_mutex on POSIX.
williamr@2
    27
//
williamr@2
    28
williamr@2
    29
#include <boost/config.hpp>
williamr@2
    30
williamr@2
    31
#if !defined(BOOST_HAS_THREADS)
williamr@2
    32
# include <boost/detail/lwm_nop.hpp>
williamr@2
    33
#elif defined(WIN32) || defined(_WIN32) || defined(__WIN32__)
williamr@2
    34
#  include <boost/detail/lwm_win32_cs.hpp>
williamr@2
    35
#elif defined(BOOST_HAS_PTHREADS)
williamr@2
    36
#  include <boost/detail/lwm_pthreads.hpp>
williamr@2
    37
#else
williamr@2
    38
// Use #define BOOST_DISABLE_THREADS to avoid the error
williamr@2
    39
#  error Unrecognized threading platform
williamr@2
    40
#endif
williamr@2
    41
williamr@2
    42
#endif // #ifndef BOOST_DETAIL_LIGHTWEIGHT_MUTEX_HPP_INCLUDED