]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: task: add thread safe notification_new and notification_wake variants
authorAurelien DARRAGON <adarragon@haproxy.com>
Tue, 1 Apr 2025 08:07:50 +0000 (10:07 +0200)
committerAurelien DARRAGON <adarragon@haproxy.com>
Thu, 3 Apr 2025 15:52:03 +0000 (17:52 +0200)
commitb77b1a2c3ac70a719a2a06964e56a206ab9cc6ec
tree6aa9cf5fcd5828d489445fe245ef6b03d678064c
parentf0f1816f1a462abfb8984233f7454c61dc04fc0b
MINOR: task: add thread safe notification_new and notification_wake variants

notification_new and notification_wake were historically meant to be
called by a single thread doing both the init and the wakeup for other
tasks waiting on the signals.

In this patch, we extend the API so that notification_new and
notification_wake have thread-safe variants that can safely be used with
multiple threads registering on the same list of events and multiple
threads pushing updates on the list.
include/haproxy/task-t.h
include/haproxy/task.h