Lines Matching defs:event
176 /*! Checks whether or not this is an event that closes a transaction. */
178 is_closing_event(int32_t event)
180 return (event & (FSSH_TRANSACTION_ABORTED | FSSH_TRANSACTION_ENDED)) != 0;
185 is_written_event(int32_t event)
187 return (event & FSSH_TRANSACTION_WRITTEN) != 0;
192 event, and return that one in \a _event.
193 If there is no pending event anymore, it will return \c false.
225 int32_t event = -1;
226 if (!get_next_pending_event(notification, &event)) {
227 // remove the notification if this was the last pending event
232 if (event >= 0) {
238 copy.hook(copy.transaction_id, event, copy.data);
287 int32_t event, bool deleteNotification)
292 int32_t pending = fssh_atomic_or(¬ification->events_pending, event);
306 /*! Notifies all interested listeners of this transaction about the \a event.
307 If \a event is a closing event (ie. TRANSACTION_ENDED, and
313 int32_t event)
315 bool isClosing = is_closing_event(event);
316 bool isWritten = is_written_event(event);
327 if ((listener->events & event) != 0)
328 add_notification(cache, listener, event, remove);