Skip to content

Simplify notification handling

Luiz Augusto von Dentz linux-bluetooth 2 versions – Applied

Status from this message: Applied.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest13 patches 1 replyApplied
  2. v112 patches 0 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/13build: Add coverage support.gitignore Makefile.am acinclude.m4 +1 more+33 -00 replies
2/13unit/test-queue: Add /queue/foreach_remove testunit/test-queue.c+22 -00 replies
3/13unit/test-queue: Add /queue/foreach_remove_backward testunit/test-queue.c+24 -00 replies
4/13shared/queue: Add reference counting to entriessrc/shared/queue.c+48 -290 replies
5/13unit/test-mgmt: Add /mgmt/response/1 testunit/test-mgmt.c+50 -20 replies
6/13unit/test-mgmt: Add /mgmt/response/2 testunit/test-mgmt.c+30 -80 replies
7/13unit/test-mgmt: Add /mgmt/event/1 testunit/test-mgmt.c+36 -00 replies
8/13unit/test-mgmt: Add /mgmt/event/2 testunit/test-mgmt.c+20 -00 replies
9/13unit/test-mgmt: Add /mgmt/unregister/1 testunit/test-mgmt.c+29 -00 replies
10/13unit/test-mgmt: Add /mgmt/unregister/2 testunit/test-mgmt.c+28 -00 replies
11/13unit/test-mgmt: Add /mgmt/destroy/1 testunit/test-mgmt.c+29 -00 replies
12/13shared/mgmt: Remove unnecessary codesrc/shared/mgmt.c+11 -780 replies
13/13doc/test-coverage: Update test countdoc/test-coverage.txt+2 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 00/13] Simplify notification handling

From: Luiz Augusto von Dentz <[email protected]>

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.

v2: Make coverage target depend on lcov to be present and update test coverage.

Luiz Augusto von Dentz (13):
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
doc: Update mgmt-tester test coverage

 .gitignore            |   4 +
 Makefile.am           |  20 +++++
 acinclude.m4          |   4 +
 configure.ac          |   5 ++
 doc/test-coverage.txt |   4 +-
 src/shared/mgmt.c     |  89 +++-----------------
 src/shared/queue.c    |  77 +++++++++++-------
 unit/test-mgmt.c      | 220 +++++++++++++++++++++++++++++++++++++++++++++++++-
 unit/test-queue.c     |  46 +++++++++++
 9 files changed, 356 insertions(+), 113 deletions(-)
Signature · 1 line
1.9.3