Lines Matching refs:listener
173 // #pragma mark - notifications/listener
233 // Notify listener, we need to copy the notification, as it might
320 cache_listener* listener = iterator.Next();
322 bool remove = (isClosing && !is_written_event(listener->events))
323 || (isWritten && is_written_event(listener->events));
327 if ((listener->events & event) != 0)
328 add_notification(cache, listener, event, remove);
330 delete_notification(listener);
347 cache_listener* listener = iterator.Next();
350 delete_notification(listener);
361 cache_listener* listener = iterator.Next();
363 if (listener->data == data && listener->hook == hookFunction) {
364 // this listener already exists, just update it
365 listener->events |= events;
370 cache_listener* listener = new(std::nothrow) cache_listener;
371 if (listener == NULL)
374 set_notification(transaction, *listener, events, hookFunction, data);
375 transaction->listeners.Add(listener);
1360 /*! Adds a transaction listener that gets notified when the transaction
1362 The listener gets automatically removed in this case.