]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
msg/DispatchQueue: wake up only one dispatch thread
authorMax Kellermann <max.kellermann@gmail.com>
Mon, 30 Sep 2024 09:10:16 +0000 (11:10 +0200)
committerMax Kellermann <max.kellermann@ionos.com>
Mon, 7 Oct 2024 20:50:20 +0000 (22:50 +0200)
commit23fd2cc44864ac793b09d8e60b30cfffe22f0116
tree0d6f7cafeb00e1534c75acef95bea3cf054730bb
parent7e5ebb79347518a54c2a76280a0a9fbd2a4d7a9b
msg/DispatchQueue: wake up only one dispatch thread

When adding one message, only one thread needs to be woken up.  Waking
up all is a more expensive operation and leads to unnecessary lock
contention and context switches.

Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
src/msg/DispatchQueue.cc