Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package aml for openSUSE:Factory checked in at 2022-12-13 18:56:22 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/aml (Old) and /work/SRC/openSUSE:Factory/.aml.new.1835 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "aml" Tue Dec 13 18:56:22 2022 rev:5 rq:1042618 version:0.2.2 Changes: -------- --- /work/SRC/openSUSE:Factory/aml/aml.changes 2021-11-02 19:19:50.711115287 +0100 +++ /work/SRC/openSUSE:Factory/.aml.new.1835/aml.changes 2022-12-13 18:56:36.727569849 +0100 @@ -1,0 +2,6 @@ +Sun Dec 4 11:25:10 UTC 2022 - Dirk Müller <[email protected]> + +- update to v0.2.2: + * aml: Don't put the same item onto the event queue more than once + +------------------------------------------------------------------- Old: ---- aml-0.2.1.tar.gz New: ---- aml-0.2.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ aml.spec ++++++ --- /var/tmp/diff_new_pack.lSnm83/_old 2022-12-13 18:56:37.259572688 +0100 +++ /var/tmp/diff_new_pack.lSnm83/_new 2022-12-13 18:56:37.267572731 +0100 @@ -1,7 +1,7 @@ # # spec file for package aml # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: aml -Version: 0.2.1 +Version: 0.2.2 Release: 0 Summary: Another Main Loop License: ISC ++++++ aml-0.2.1.tar.gz -> aml-0.2.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/aml-0.2.1/meson.build new/aml-0.2.2/meson.build --- old/aml-0.2.1/meson.build 2021-10-16 15:26:42.000000000 +0200 +++ new/aml-0.2.2/meson.build 2022-07-03 22:18:54.000000000 +0200 @@ -1,7 +1,7 @@ project( 'aml', 'c', - version: '0.2.1', + version: '0.2.2', license: 'ISC', default_options: [ 'c_std=c11', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/aml-0.2.1/src/aml.c new/aml-0.2.2/src/aml.c --- old/aml-0.2.1/src/aml.c 2021-10-16 15:26:42.000000000 +0200 +++ new/aml-0.2.2/src/aml.c 2022-07-03 22:18:54.000000000 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020 Andri Yngvason + * Copyright (c) 2020 - 2022 Andri Yngvason * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -57,6 +57,7 @@ aml_free_fn free_fn; aml_callback_fn cb; unsigned long long id; + uint32_t n_events; void* backend_data; @@ -769,7 +770,7 @@ { pthread_mutex_lock(&self->event_queue_mutex); struct aml_obj* obj = TAILQ_FIRST(&self->event_queue); - if (obj) + if (obj && --obj->n_events == 0) TAILQ_REMOVE(&self->event_queue, obj, event_link); pthread_mutex_unlock(&self->event_queue_mutex); return obj; @@ -1006,7 +1007,8 @@ pthread_sigmask(SIG_BLOCK, &sig_new, &sig_old); pthread_mutex_lock(&self->event_queue_mutex); - TAILQ_INSERT_TAIL(&self->event_queue, obj, event_link); + if (obj->n_events++ == 0) + TAILQ_INSERT_TAIL(&self->event_queue, obj, event_link); aml_ref(obj); pthread_mutex_unlock(&self->event_queue_mutex); pthread_sigmask(SIG_SETMASK, &sig_old, NULL);
