File tree Expand file tree Collapse file tree 4 files changed +7
-3
lines changed
src/cpp/rtps/transport/shared_mem
include/boost/interprocess/sync Expand file tree Collapse file tree 4 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ try_compile(IS_THIRDPARTY_BOOST_OK
23
23
${CMAKE_BINARY_DIR}
24
24
${PROJECT_SOURCE_DIR} /thirdparty/boost/test/ThirdpartyBoostCompile_test.cpp
25
25
CMAKE_FLAGS "-DINCLUDE_DIRECTORIES=${THIRDPARTY_BOOST_INCLUDE_DIR} "
26
+ CXX_STANDARD 11
26
27
LINK_LIBRARIES ${THIRDPARTY_BOOST_LINK_LIBS}
27
28
OUTPUT_VARIABLE OUT
28
29
)
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 @@ -59,9 +59,10 @@ class interprocess_semaphore
59
59
interprocess_semaphore &operator =(const interprocess_semaphore &);
60
60
#endif // #ifndef BOOST_INTERPROCESS_DOXYGEN_INVOKED
61
61
public:
62
+
62
63
// !Creates a interprocess_semaphore with the given initial count.
63
- // !interprocess_exception if there is an error.*/
64
- interprocess_semaphore (unsigned int initialCount = 0 );
64
+ // !interprocess_exception if there is an error.
65
+ interprocess_semaphore (unsigned int initialCount);
65
66
66
67
// !Destroys the interprocess_semaphore.
67
68
// !Does not throw
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