Lines Matching +full:sync +full:- +full:update +full:- +full:mask
1 //===-- Broadcaster.cpp ---------------------------------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
48 m_manager_sp->SignUpListenersForBroadcaster(*this);
62 lldb::ListenerSP curr_listener_sp(it->first.lock());
64 if (it->second & event_mask)
65 listeners.emplace_back(std::move(curr_listener_sp), it->second);
82 lldb::ListenerSP curr_listener_sp(it->first.lock());
83 if (curr_listener_sp && (it->second & event_mask))
95 pair.first->BroadcasterWillDestruct(&m_broadcaster);
110 for (uint32_t bit = 1u, mask = event_mask; mask != 0 && bit != 0;
111 bit <<= 1, mask >>= 1) {
112 if (mask & 1) {
122 s.PutCString(pos->second);
142 // See if we already have this listener, and if so, update its mask
147 // This already handles all bits so just return the mask:
200 lldb::ListenerSP curr_listener_sp(it->first.lock());
210 it->second &= ~event_mask;
213 if (!it->second)
241 // Update the broadcaster on this event
242 event_sp->SetBroadcaster(&m_broadcaster);
244 const uint32_t event_type = event_sp->GetType();
258 if (!log && event_sp->GetData())
259 log = event_sp->GetData()->GetLogChannel();
263 event_sp->Dump(&event_description);
275 if (unique && primary_listener_sp->PeekAtNextEventForBroadcasterWithType(
285 // send it to the secondary listeners or they will get out of sync with the
289 event_sp->AddPendingListener(pair.first);
291 primary_listener_sp->AddEvent(event_sp);
294 if (unique && pair.first->PeekAtNextEventForBroadcasterWithType(
298 pair.first->AddEvent(event_sp);
337 listener_sp->m_name.c_str(), static_cast<void *>(listener_sp.get()));
353 return m_hijacking_listeners.back()->GetName();
368 listener_sp->m_name.c_str(),
399 auto class_matches = [&event_spec](const event_listener_key &input) -> bool {
428 [&listener_sp, &event_spec](const event_listener_key &input) -> bool {
438 // matches that weren't exact to re-add:
467 [&event_spec](const event_listener_key &input) -> bool {
481 [&listener](const lldb::ListenerSP &input) -> bool {
489 auto events_predicate = [listener](const event_listener_key &input) -> bool {
507 [&listener_sp](const event_listener_key &input) -> bool {
530 auto class_matches = [&broadcaster](const event_listener_key &input) -> bool {
537 (*iter).second->StartListeningForEvents(&broadcaster,
547 listener->BroadcasterManagerWillDestruct(this->shared_from_this());