105{
106 pvd::PVStructurePtr pvReq(pvd::getPVDataCreate()->createPVStructure(putRequestType));
107 pvReq->getSubFieldT<pvd::PVBoolean>("record._options.block")->put(!after_put.empty());
108
109 unsigned reqProcess = 0;
110 bool doit = force;
111 for(links_t::iterator it(links.begin()), end(links.end()); it!=end; ++it)
112 {
113 pvaLink *link = *it;
114
115 if(!link->used_scratch) continue;
116
117 pvd::shared_vector<const void> temp;
118 temp.swap(link->put_scratch);
119 link->used_scratch = false;
120 temp.swap(link->put_queue);
121 link->used_queue = true;
122
123 doit = true;
124
125 switch(link->pp) {
126 case pvaLink::NPP:
127 reqProcess |= 1;
128 break;
129 case pvaLink::Default:
130 break;
131 case pvaLink::PP:
132 case pvaLink::CP:
133 case pvaLink::CPP:
134 reqProcess |= 2;
135 break;
136 }
137 }
138
139
140
141
142
143
144
145 const char *proc = "passive";
146 if((reqProcess&2) || force) {
147 proc = "true";
148 } else if(reqProcess&1) {
149 proc = "false";
150 }
151 pvReq->getSubFieldT<pvd::PVString>("record._options.process")->put(proc);
152
153 DEBUG(this, <<key.first<<"Start put "<<doit);
154 if(doit) {
155
156 op_put = chan.put(this, pvReq);
157 }
158}