src/media/audio/audio_core/audio_object.cc
bool AudioObject::ForAnyDestLink(const LinkBoolFunction& dest_task) {
  TRACE_DURATION("audio", "AudioObject::ForAnyDestLink");
  std::lock_guard<std::mutex> links_lock(links_lock_);

  for (auto& link : dest_links_) {
    if (dest_task(link)) {
      return true;  // This link satisfied the need; we are done.
    }
    // Else, continue inquiring with the remaining links.
  }
  return false;  // No link satisfied the need.
}
// Call the provided function for each destination link, until one returns true.
Call the provided function for each destination link, until one returns true.
Call the provided function for each destination link until one returns true .
bool AudioObject::ForAnyDestLink(const LinkBoolFunction& dest_task) {
  TRACE_DURATION("audio", "AudioObject::ForAnyDestLink");
  std::lock_guard<std::mutex> links_lock(links_lock_);
  for (auto& link : dest_links_) {
    if (dest_task(link)) {
      return true;  
    }
  }
  return false;  
}
bool AudioObject :: ForAnyDestLink ( const LinkBoolFunction & dest_task ) { TRACE_DURATION ( " " , " " ) ; std :: lock_guard < std :: mutex > links_lock ( links_lock_ ) ; for ( auto & link : dest_links_ ) { if ( dest_task ( link ) ) { return true ; } } return false ; }
Call the provided function for each destination link, until one returns true.
Call the provided function for each destination link until one returns true .
// This link satisfied the need; we are done. // Else, continue inquiring with the remaining links. // No link satisfied the need.