This commit is contained in:
Michael Davidsaver
2023-09-11 10:49:38 +02:00
parent ec0b21d27c
commit de63ec4496
2 changed files with 6 additions and 5 deletions
+4 -2
View File
@@ -334,7 +334,8 @@ public:
inline void reserve(size_t i) {}
//! Extend size. Implies make_unique()
//! Extend size. Implies make_unique().
//! @post unique()==true
void resize(size_t i) {
if(!this->unique() || i!=this->_count) {
shared_array o(i);
@@ -343,7 +344,8 @@ public:
}
}
//! Ensure exclusive ownership of array data
//! Ensure exclusive ownership of array data by making a copy if necessary.
//! @post unique()==true
inline void make_unique() {
this->resize(this->size());
}
+2 -3
View File
@@ -54,13 +54,12 @@ struct MonitorOp : public ServerOp,
BitMask pvMask;
std::string msg;
// Further members can only be changed from the accepter worker thread with this lock held.
// They may be read from the worker, or if this lock is held.
// Further members guarded by this lock (except as noted)
mutable epicsMutex lock;
// is doReply() scheduled to run
bool scheduled=false;
bool pipeline=false;
bool pipeline=false; // const after setup
// finish() called
bool finished=false;
size_t window=0u, limit=4u;