We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5ec49f commit a5f03dfCopy full SHA for a5f03df
2 files changed
examples/cpp/flow_control/PublisherApp.cpp
@@ -181,8 +181,6 @@ void PublisherApp::run()
181
// Publication code
182
FlowControl msg;
183
184
- /* Initialize your structure here */
185
-
186
while (!is_stopped() && ((samples_ == 0) || (msg.index() < samples_)))
187
{
188
msg.index(msg.index() + 1);
@@ -229,7 +227,7 @@ bool PublisherApp::publish(
229
227
230
228
if (!is_stopped())
231
232
- ret = writer_->write(&msg);
+ ret = (RETCODE_OK == writer_->write(&msg));
233
}
234
return ret;
235
examples/cpp/flow_control/PublisherApp.hpp
@@ -23,7 +23,7 @@
23
24
#include <atomic>
25
#include <condition_variable>
26
-#include <cstdlib>
+#include <cstdint>
27
#include <mutex>
28
29
#include <fastdds/dds/domain/DomainParticipant.hpp>
0 commit comments