client.h minor
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user