From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx> This attempts to simplify notification handling by making queue_foreach safe from entry removals during callback. In addition to that a couples there are a couple of new unit test to emulate removal during event callback and because of that Ive also included the coverage support again since I used it to check what part of the code is being exercised. Luiz Augusto von Dentz (12): build: Add coverage support unit/test-queue: Add /queue/foreach_remove test unit/test-queue: Add /queue/foreach_remove_backward test shared/queue: Add reference counting to entries unit/test-mgmt: Add /mgmt/response/1 test unit/test-mgmt: Add /mgmt/response/2 test unit/test-mgmt: Add /mgmt/event/1 test unit/test-mgmt: Add /mgmt/event/2 test unit/test-mgmt: Add /mgmt/unregister/1 test unit/test-mgmt: Add /mgmt/unregister/2 test unit/test-mgmt: Add /mgmt/destroy/1 test shared/mgmt: Remove unnecessary code .gitignore | 4 + Makefile.am | 17 +++++ acinclude.m4 | 4 + configure.ac | 4 + src/shared/mgmt.c | 89 +++------------------- src/shared/queue.c | 77 ++++++++++++------- unit/test-mgmt.c | 220 ++++++++++++++++++++++++++++++++++++++++++++++++++++- unit/test-queue.c | 46 +++++++++++ 8 files changed, 350 insertions(+), 111 deletions(-) -- 1.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html