Realistic 3D camera system
3D camera system components
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
asio-1.10.6
include
asio
detail
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
22
#include "
asio/detail/scoped_lock.hpp
"
23
24
#include "
asio/detail/push_options.hpp
"
25
26
namespace
asio
{
27
namespace
detail {
28
29
struct
null_static_mutex
30
{
31
typedef
asio::detail::scoped_lock<null_static_mutex>
scoped_lock
;
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
56
#include "
asio/detail/pop_options.hpp
"
57
58
#endif // !defined(ASIO_HAS_THREADS)
59
60
#endif // ASIO_DETAIL_NULL_STATIC_MUTEX_HPP
asio::detail::scoped_lock
Definition:
scoped_lock.hpp:27
asio::detail::null_static_mutex::init
void init()
Definition:
null_static_mutex.hpp:34
asio::detail::null_static_mutex::lock
void lock()
Definition:
null_static_mutex.hpp:39
asio::detail::null_static_mutex
Definition:
null_static_mutex.hpp:29
config.hpp
asio::detail::null_static_mutex::unlock
void unlock()
Definition:
null_static_mutex.hpp:44
push_options.hpp
scoped_lock.hpp
pop_options.hpp
asio::detail::null_static_mutex::scoped_lock
asio::detail::scoped_lock< null_static_mutex > scoped_lock
Definition:
null_static_mutex.hpp:31
asio
Definition:
async_result.hpp:23
asio::detail::null_static_mutex::unused_
int unused_
Definition:
null_static_mutex.hpp:48
Generated by
1.8.11