Home | History | Annotate | Download | only in detail
      1 //
      2 // detail/mutex.hpp
      3 // ~~~~~~~~~~~~~~~~
      4 //
      5 // Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com)
      6 //
      7 // Distributed under the Boost Software License, Version 1.0. (See accompanying
      8 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
      9 //
     10 
     11 #ifndef ASIO_DETAIL_MUTEX_HPP
     12 #define ASIO_DETAIL_MUTEX_HPP
     13 
     14 
     15 #include "asio/detail/config.hpp"
     16 
     17 #if   defined(ASIO_HAS_PTHREADS)
     18 # include "asio/detail/posix_mutex.hpp"
     19 #else
     20 # include "asio/detail/std_mutex.hpp"
     21 #endif
     22 
     23 namespace asio {
     24 namespace detail {
     25 
     26 #if   defined(ASIO_HAS_PTHREADS)
     27 typedef posix_mutex mutex;
     28 #else
     29 typedef std_mutex mutex;
     30 #endif
     31 
     32 } // namespace detail
     33 } // namespace asio
     34 
     35 #endif // ASIO_DETAIL_MUTEX_HPP
     36