pvac::Monitor::cancel() don't clear data members

Clearing root, overrun, and changed makes it difficult
to avoid a race during an async. cancel (very common).
This commit is contained in:
Michael Davidsaver committed 2019-09-11 18:05:08 -07:00
1 parent 710bcde7be
commit 24e83daaba
2 files changed
+5 -4

No files matched your search

-3
View File
@@ -196,9 +196,6 @@ std::string Monitor::name() const
void Monitor::cancel()
{
changed.clear();
overrun.clear();
root.reset();
if(impl) impl->cancel();
}
+5 -1
View File
@@ -124,7 +124,11 @@ struct epicsShareClass Monitor
//! Channel name
std::string name() const;
//! Immediate cancellation.
//! Does not wait for remote confirmation.
/** Does not wait for remote confirmation.
*
@since Up to 7.0.0 also cleared root, changed, and overrun.
After 7.0.0, these data members are left unchanged.
**/
void cancel();
/** updates root, changed, overrun
*