comparison DEPENDENCIES/generic/include/boost/interprocess/sync/windows/condition.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
8 // 8 //
9 ////////////////////////////////////////////////////////////////////////////// 9 //////////////////////////////////////////////////////////////////////////////
10 10
11 #ifndef BOOST_INTERPROCESS_DETAIL_WINDOWS_CONDITION_HPP 11 #ifndef BOOST_INTERPROCESS_DETAIL_WINDOWS_CONDITION_HPP
12 #define BOOST_INTERPROCESS_DETAIL_WINDOWS_CONDITION_HPP 12 #define BOOST_INTERPROCESS_DETAIL_WINDOWS_CONDITION_HPP
13
14 #ifndef BOOST_CONFIG_HPP
15 # include <boost/config.hpp>
16 #endif
17 #
18 #if defined(BOOST_HAS_PRAGMA_ONCE)
19 # pragma once
20 #endif
13 21
14 #include <boost/interprocess/detail/config_begin.hpp> 22 #include <boost/interprocess/detail/config_begin.hpp>
15 #include <boost/interprocess/detail/workaround.hpp> 23 #include <boost/interprocess/detail/workaround.hpp>
16 #include <boost/interprocess/detail/posix_time_types_wrk.hpp> 24 #include <boost/interprocess/detail/posix_time_types_wrk.hpp>
17 25
36 windows_condition() 44 windows_condition()
37 : m_condition_data() 45 : m_condition_data()
38 {} 46 {}
39 47
40 ~windows_condition() 48 ~windows_condition()
41 {} 49 {
50 //Notify all waiting threads
51 //to allow POSIX semantics on condition destruction
52 this->notify_all();
53 }
42 54
43 void notify_one() 55 void notify_one()
44 { m_condition_data.notify_one(); } 56 { m_condition_data.notify_one(); }
45 57
46 void notify_all() 58 void notify_all()