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_event.hpp
Go to the documentation of this file.
1
//
2
// detail/null_event.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_EVENT_HPP
12
#define ASIO_DETAIL_NULL_EVENT_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/noncopyable.hpp
"
23
24
#include "
asio/detail/push_options.hpp
"
25
26
namespace
asio
{
27
namespace
detail {
28
29
class
null_event
30
:
private
noncopyable
31
{
32
public
:
33
// Constructor.
34
null_event
()
35
{
36
}
37
38
// Destructor.
39
~null_event
()
40
{
41
}
42
43
// Signal the event. (Retained for backward compatibility.)
44
template
<
typename
Lock>
45
void
signal
(Lock&)
46
{
47
}
48
49
// Signal all waiters.
50
template
<
typename
Lock>
51
void
signal_all
(Lock&)
52
{
53
}
54
55
// Unlock the mutex and signal one waiter.
56
template
<
typename
Lock>
57
void
unlock_and_signal_one
(Lock&)
58
{
59
}
60
61
// If there's a waiter, unlock the mutex and signal it.
62
template
<
typename
Lock>
63
bool
maybe_unlock_and_signal_one
(Lock&)
64
{
65
return
false
;
66
}
67
68
// Reset the event.
69
template
<
typename
Lock>
70
void
clear
(Lock&)
71
{
72
}
73
74
// Wait for the event to become signalled.
75
template
<
typename
Lock>
76
void
wait
(Lock&)
77
{
78
}
79
};
80
81
}
// namespace detail
82
}
// namespace asio
83
84
#include "
asio/detail/pop_options.hpp
"
85
86
#endif // !defined(ASIO_HAS_THREADS)
87
88
#endif // ASIO_DETAIL_NULL_EVENT_HPP
asio::detail::null_event::unlock_and_signal_one
void unlock_and_signal_one(Lock &)
Definition:
null_event.hpp:57
config.hpp
asio::detail::noncopyable
Definition:
noncopyable.hpp:25
push_options.hpp
asio::detail::null_event::signal_all
void signal_all(Lock &)
Definition:
null_event.hpp:51
pop_options.hpp
noncopyable.hpp
asio::detail::null_event::~null_event
~null_event()
Definition:
null_event.hpp:39
asio::detail::null_event
Definition:
null_event.hpp:29
asio::detail::null_event::clear
void clear(Lock &)
Definition:
null_event.hpp:70
asio::detail::null_event::wait
void wait(Lock &)
Definition:
null_event.hpp:76
asio::detail::null_event::null_event
null_event()
Definition:
null_event.hpp:34
asio::detail::null_event::maybe_unlock_and_signal_one
bool maybe_unlock_and_signal_one(Lock &)
Definition:
null_event.hpp:63
asio::detail::null_event::signal
void signal(Lock &)
Definition:
null_event.hpp:45
asio
Definition:
async_result.hpp:23
Generated by
1.8.11