Skip to content

Commit

Permalink
Added needed calls to lock() and unlock()
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkRivers committed Nov 3, 2018
1 parent 3c591d2 commit d64e33c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ADApp/ADSrc/asynNDArrayDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -711,11 +711,13 @@ void asynNDArrayDriver::updateQueuedArrayCount()
int arrayCount;
while (1) {
epicsEventWait(queuedArrayEvent_);
lock();
queuedArrayCountMutex_->lock();
arrayCount = queuedArrayCount_;
queuedArrayCountMutex_->unlock();
setIntegerParam(NDNumQueuedArrays, arrayCount);
callParamCallbacks();
unlock();
}
}

Expand Down

0 comments on commit d64e33c

Please sign in to comment.