client: different onInit() for monitor

This commit is contained in:
Michael Davidsaver committed 2021-06-27 10:17:13 -07:00
1 parent 8246a64806
commit 3dd4dd6a66
4 files changed
+26 -12

No files matched your search

+4 -2
View File
@@ -102,7 +102,8 @@ struct BasicTest {
epicsEvent done;
cli.monitor("nonexistent")
.onInit([&done](const Value&) {
.onInit([&done](client::Subscription&, const Value&)
{
done.signal();
})
.exec();
@@ -117,7 +118,8 @@ struct BasicTest {
cli.monitor("nonexistent")
.syncCancel(false)
.onInit([done](const Value&) {
.onInit([done](client::Subscription&, const Value&)
{
done->signal();
})
.exec();