OpenDDS  Snapshot(2023/04/28-20:55)
StatusConditionImpl.cpp
Go to the documentation of this file.
1 /*
2  *
3  *
4  * Distributed under the OpenDDS License.
5  * See: http://www.opendds.org/license.html
6  */
7 
8 #include "DCPS/DdsDcps_pch.h" //Only the _pch include should start with DCPS/
9 #include "StatusConditionImpl.h"
10 #include "EntityImpl.h"
11 
13 
14 namespace OpenDDS {
15 namespace DCPS {
16 
18 {
20 
21  if (DCPS_debug_level > 9) {
23  ACE_TEXT("(%P|%t) StatusConditionImpl::get_trigger_value() - ")
24  ACE_TEXT("mask==0x%x, changes==0x%x.\n"),
25  this->mask_,
26  this->parent_->get_status_changes()));
27  }
28 
29  return (parent_->get_status_changes() & mask_) > 0;
30 }
31 
33 {
35  return mask_;
36 }
37 
40 {
41  {
44  mask_ = mask;
45  }
46  signal_all();
47  return DDS::RETCODE_OK;
48 }
49 
51 {
52  return DDS::Entity::_duplicate(parent_);
53 }
54 
55 } // namespace DCPS
56 } // namespace OpenDDS
57 
#define ACE_DEBUG(X)
virtual DDS::ReturnCode_t set_enabled_statuses(DDS::StatusMask mask)
virtual DDS::StatusMask get_enabled_statuses()
ACE_Recursive_Thread_Mutex lock_
Definition: ConditionImpl.h:42
LM_DEBUG
ACE_CDR::Boolean Boolean
virtual DDS::Entity_ptr get_entity()
#define ACE_GUARD_RETURN(MUTEX, OBJ, LOCK, RETURN)
const ReturnCode_t RETCODE_OUT_OF_RESOURCES
ACE_TEXT("TCP_Factory")
unsigned long StatusMask
OpenDDS_Dcps_Export unsigned int DCPS_debug_level
Definition: debug.cpp:30
#define OPENDDS_END_VERSIONED_NAMESPACE_DECL
const ReturnCode_t RETCODE_OK
virtual DDS::StatusMask get_status_changes()
Definition: EntityImpl.cpp:61
The Internal API and Implementation of OpenDDS.
Definition: AddressCache.h:28