diff options
Diffstat (limited to 'CIAO/connectors/dds4ccm/impl/ndds/Coherent_Changes_Guard.cpp')
-rw-r--r-- | CIAO/connectors/dds4ccm/impl/ndds/Coherent_Changes_Guard.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/CIAO/connectors/dds4ccm/impl/ndds/Coherent_Changes_Guard.cpp b/CIAO/connectors/dds4ccm/impl/ndds/Coherent_Changes_Guard.cpp new file mode 100644 index 00000000000..9fd0fd752f2 --- /dev/null +++ b/CIAO/connectors/dds4ccm/impl/ndds/Coherent_Changes_Guard.cpp @@ -0,0 +1,19 @@ +// $Id$ +#include "dds4ccm/impl/ndds/Coherent_Changes_Guard.h" + +CIAO::DDS4CCM::Coherent_Changes_Guard::Coherent_Changes_Guard (DDSPublisher* p, bool coherent_write) : p_ (p), coherent_write_ (coherent_write) +{ + if (this->coherent_write_) + { + p_->begin_coherent_changes (); + } +} + +CIAO::DDS4CCM::Coherent_Changes_Guard::~Coherent_Changes_Guard () +{ + if (this->coherent_write_) + { + this->p_->end_coherent_changes (); + } +} + |