File tree Expand file tree Collapse file tree 3 files changed +3
-8
lines changed
src/cpp/rtps/transport/shared_mem
include/boost/interprocess/sync Expand file tree Collapse file tree 3 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ class RobustInterprocessCondition
161
161
162
162
struct SemaphoreNode
163
163
{
164
- bi::interprocess_semaphore sem;
164
+ bi::interprocess_semaphore sem { 0 } ;
165
165
uint32_t next;
166
166
uint32_t prev;
167
167
};
Original file line number Diff line number Diff line change @@ -60,9 +60,6 @@ class interprocess_semaphore
60
60
#endif // #ifndef BOOST_INTERPROCESS_DOXYGEN_INVOKED
61
61
public:
62
62
63
- // !Creates a interprocess_semaphore with initial count = 0.
64
- interprocess_semaphore ();
65
-
66
63
// !Creates a interprocess_semaphore with the given initial count.
67
64
// !interprocess_exception if there is an error.
68
65
interprocess_semaphore (unsigned int initialCount);
@@ -116,10 +113,6 @@ class interprocess_semaphore
116
113
namespace boost {
117
114
namespace interprocess {
118
115
119
- inline interprocess_semaphore::interprocess_semaphore ()
120
- : m_sem(0 )
121
- {}
122
-
123
116
inline interprocess_semaphore::interprocess_semaphore (unsigned int initialCount)
124
117
: m_sem(initialCount)
125
118
{}
Original file line number Diff line number Diff line change 16
16
#include < boost/interprocess/managed_shared_memory.hpp>
17
17
#include < boost/interprocess/sync/interprocess_condition.hpp>
18
18
#include < boost/interprocess/sync/named_mutex.hpp>
19
+ #include < boost/interprocess/sync/interprocess_semaphore.hpp>
19
20
#include < boost/interprocess/offset_ptr.hpp>
20
21
#include < boost/thread/thread_time.hpp>
21
22
@@ -31,6 +32,7 @@ class ThirdpartyBoostCompileTest
31
32
ThirdpartyBoostCompileTest ()
32
33
{
33
34
boost::interprocess::named_mutex::remove (" foo" );
35
+ boost::interprocess::interprocess_semaphore sem {0 };
34
36
35
37
try
36
38
{
You can’t perform that action at this time.
0 commit comments