Realistic 3D camera system
3D camera system components
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 
23 
25 
26 namespace asio {
27 namespace detail {
28 
30  : private noncopyable
31 {
32 public:
33  // Constructor.
35  {
36  }
37 
38  // Destructor.
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>
58  {
59  }
60 
61  // If there's a waiter, unlock the mutex and signal it.
62  template <typename 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 
85 
86 #endif // !defined(ASIO_HAS_THREADS)
87 
88 #endif // ASIO_DETAIL_NULL_EVENT_HPP
void unlock_and_signal_one(Lock &)
Definition: null_event.hpp:57
bool maybe_unlock_and_signal_one(Lock &)
Definition: null_event.hpp:63