Pass SharedPV& to onFirstConnect()/onLastDisconnect()

For consistency among the on*() callbacks.
This commit is contained in:
Michael Davidsaver
2020-07-23 12:21:16 -07:00
parent 80ee77c2ea
commit ce80e8897b
5 changed files with 18 additions and 14 deletions
+2 -2
View File
@@ -107,13 +107,13 @@ struct Tester : public TesterBase
std::atomic<bool> onFC{false}, onLD{false};
epicsEvent done;
mbox.onFirstConnect([this, &onFC](){
mbox.onFirstConnect([this, &onFC](server::SharedPV&){
testShow()<<"In onFirstConnect()";
mbox.open(initial);
onFC.store(true);
});
mbox.onLastDisconnect([this, &onLD, &done](){
mbox.onLastDisconnect([this, &onLD, &done](server::SharedPV&){
testShow()<<"In onLastDisconnect";
mbox.close();
onLD.store(true);