Mercurial > hg > vamp-build-and-test
comparison DEPENDENCIES/generic/include/boost/asio/detail/null_event.hpp @ 101:c530137014c0
Update Boost headers (1.58.0)
author | Chris Cannam |
---|---|
date | Mon, 07 Sep 2015 11:12:49 +0100 |
parents | 2665513ce2d3 |
children |
comparison
equal
deleted
inserted
replaced
100:793467b5e61c | 101:c530137014c0 |
---|---|
1 // | 1 // |
2 // detail/null_event.hpp | 2 // detail/null_event.hpp |
3 // ~~~~~~~~~~~~~~~~~~~~~ | 3 // ~~~~~~~~~~~~~~~~~~~~~ |
4 // | 4 // |
5 // Copyright (c) 2003-2013 Christopher M. Kohlhoff (chris at kohlhoff dot com) | 5 // Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com) |
6 // | 6 // |
7 // Distributed under the Boost Software License, Version 1.0. (See accompanying | 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) | 8 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
9 // | 9 // |
10 | 10 |
39 // Destructor. | 39 // Destructor. |
40 ~null_event() | 40 ~null_event() |
41 { | 41 { |
42 } | 42 } |
43 | 43 |
44 // Signal the event. | 44 // Signal the event. (Retained for backward compatibility.) |
45 template <typename Lock> | 45 template <typename Lock> |
46 void signal(Lock&) | 46 void signal(Lock&) |
47 { | 47 { |
48 } | 48 } |
49 | 49 |
50 // Signal the event and unlock the mutex. | 50 // Signal all waiters. |
51 template <typename Lock> | 51 template <typename Lock> |
52 void signal_and_unlock(Lock&) | 52 void signal_all(Lock&) |
53 { | 53 { |
54 } | |
55 | |
56 // Unlock the mutex and signal one waiter. | |
57 template <typename Lock> | |
58 void unlock_and_signal_one(Lock&) | |
59 { | |
60 } | |
61 | |
62 // If there's a waiter, unlock the mutex and signal it. | |
63 template <typename Lock> | |
64 bool maybe_unlock_and_signal_one(Lock&) | |
65 { | |
66 return false; | |
54 } | 67 } |
55 | 68 |
56 // Reset the event. | 69 // Reset the event. |
57 template <typename Lock> | 70 template <typename Lock> |
58 void clear(Lock&) | 71 void clear(Lock&) |