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 211edc7 commit 0a806f4Copy full SHA for 0a806f4
src/cpp/rtps/resources/ResourceEvent.cpp
@@ -196,11 +196,11 @@ void ResourceEvent::run_io_service()
196
void ResourceEvent::init_thread()
197
{
198
thread_ = std::thread(&ResourceEvent::run_io_service, this);
199
- std::promise<bool> ready;
200
- std::future<bool> ready_fut = ready.get_future();
+ std::promise<void> ready;
+ std::future<void> ready_fut = ready.get_future();
201
io_service_.post([&ready]()
202
203
- ready.set_value(true);
+ ready.set_value();
204
});
205
ready_fut.wait();
206
}
0 commit comments