Lines Matching defs:event
781 /*! Checks whether or not this is an event that closes a transaction. */
783 is_closing_event(int32 event)
785 return (event & (TRANSACTION_ABORTED | TRANSACTION_ENDED)) != 0;
790 is_written_event(int32 event)
792 return (event & TRANSACTION_WRITTEN) != 0;
797 event, and return that one in \a _event.
798 If there is no pending event anymore, it will return \c false.
832 int32 event = -1;
833 if (!get_next_pending_event(notification, &event)) {
834 // remove the notification if this was the last pending event
839 if (event >= 0) {
845 copy.hook(copy.transaction_id, event, copy.data);
912 int32 event, bool deleteNotification)
917 int32 pending = atomic_or(¬ification->events_pending, event);
935 /*! Notifies all interested listeners of this transaction about the \a event.
936 If \a event is a closing event (ie. TRANSACTION_ENDED, and
942 int32 event)
946 bool isClosing = is_closing_event(event);
947 bool isWritten = is_written_event(event);
958 if ((listener->events & event) != 0)
959 add_notification(cache, listener, event, remove);
2675 notify_sync(int32 transactionID, int32 event, void* _cache)
2748 sEventSemaphore = create_sem(0, "block cache event");