| 1699 | } |
| 1700 | |
| 1701 | bool DataReaderImpl::have_instance_states( |
| 1702 | DDS::InstanceStateMask instance_states) const |
| 1703 | { |
| 1704 | //!!!caller should have acquired sample_lock_ |
| 1705 | ACE_Guard<ACE_Recursive_Thread_Mutex> instance_guard(instances_lock_); |
| 1706 | return lookup_matching_instances(DDS::ANY_SAMPLE_STATE, DDS::ANY_VIEW_STATE, instance_states).size(); |
| 1707 | } |
| 1708 | |
| 1709 | /// Fold-in the three separate loops of have_sample_states(), |
| 1710 | /// have_view_states(), and have_instance_states(). Takes the sample_lock_. |