Realistic 3D camera system
3D camera system components
null_static_mutex.hpp
Go to the documentation of this file.
1 //
2 // detail/null_static_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_NULL_STATIC_MUTEX_HPP
12 #define ASIO_DETAIL_NULL_STATIC_MUTEX_HPP
13 
14 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
15 # pragma once
16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
17 
18 #include "asio/detail/config.hpp"
19 
20 #if !defined(ASIO_HAS_THREADS)
21 
23 
25 
26 namespace asio {
27 namespace detail {
28 
30 {
32 
33  // Initialise the mutex.
34  void init()
35  {
36  }
37 
38  // Lock the mutex.
39  void lock()
40  {
41  }
42 
43  // Unlock the mutex.
44  void unlock()
45  {
46  }
47 
48  int unused_;
49 };
50 
51 #define ASIO_NULL_STATIC_MUTEX_INIT { 0 }
52 
53 } // namespace detail
54 } // namespace asio
55 
57 
58 #endif // !defined(ASIO_HAS_THREADS)
59 
60 #endif // ASIO_DETAIL_NULL_STATIC_MUTEX_HPP
asio::detail::scoped_lock< null_static_mutex > scoped_lock