client.h minor

This commit is contained in:
Michael Davidsaver
2018-10-03 10:26:47 -07:00
parent d4f3abf461
commit e67e00c968
3 changed files with 5 additions and 3 deletions

View File

@@ -205,13 +205,13 @@ namespace pvac {
Operation
ClientChannel::put(PutCallback* cb,
epics::pvData::PVStructure::const_shared_pointer pvRequest,
bool getcurrent)
bool getprevious)
{
if(!impl) throw std::logic_error("Dead Channel");
if(!pvRequest)
pvRequest = pvd::createRequest("field()");
std::tr1::shared_ptr<Putter> ret(Putter::build(cb, getcurrent));
std::tr1::shared_ptr<Putter> ret(Putter::build(cb, getprevious));
{
Guard G(ret->mutex);

View File

@@ -29,6 +29,7 @@ struct RPCer : public pvac::detail::CallbackStorage,
operation_type::shared_pointer op;
pvac::ClientChannel::GetCallback *cb;
// 'event' may be modified as long as cb!=NULL
pvac::GetEvent event;
pvd::PVStructure::const_shared_pointer args;
@@ -110,6 +111,7 @@ struct RPCer : public pvac::detail::CallbackStorage,
{
std::tr1::shared_ptr<RPCer> keepalive(internal_shared_from_this());
CallbackGuard G(*this);
if(!cb) return;
event.message = "Disconnect";
callEvent(G);

View File

@@ -385,7 +385,7 @@ public:
//! If false, then previous=NULL
Operation put(PutCallback* cb,
epics::pvData::PVStructure::const_shared_pointer pvRequest = epics::pvData::PVStructure::const_shared_pointer(),
bool getcurrent = false);
bool getprevious = false);
//! Synchronious put operation
inline