caProvider: Minor cleanup
This commit is contained in:
@ -159,7 +159,7 @@ void CAChannel::disconnectChannel()
|
||||
}
|
||||
std::vector<CAChannelMonitorWPtr>::iterator it;
|
||||
for (it = monitorlist.begin(); it!=monitorlist.end(); ++it) {
|
||||
CAChannelMonitorPtr mon = (*it).lock();
|
||||
CAChannelMonitorPtr mon = it->lock();
|
||||
if (!mon) continue;
|
||||
mon->stop();
|
||||
}
|
||||
|
@ -33,10 +33,11 @@ CAChannelProvider::~CAChannelProvider()
|
||||
{
|
||||
std::queue<CAChannelPtr> channelQ;
|
||||
{
|
||||
std::vector<CAChannelWPtr>::iterator it;
|
||||
epicsGuard<epicsMutex> G(channelListMutex);
|
||||
for (size_t i = 0; i < caChannelList.size(); ++i)
|
||||
for (it = caChannelList.begin(); it != caChannelList.end(); ++it)
|
||||
{
|
||||
CAChannelPtr caChannel(caChannelList[i].lock());
|
||||
CAChannelPtr caChannel(it->lock());
|
||||
if (caChannel)
|
||||
channelQ.push(caChannel);
|
||||
}
|
||||
|
Reference in New Issue
Block a user