From 0445f2a3590f67441602a05fe3924ab677c79ff0 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Wed, 14 Jun 2017 04:09:00 +0000 Subject: Add ftrigr_checksa(), rewrite s6_svlisten_loop() around it - Fixes the race condition hit by permanent failure, i.e. two ftrig events close to each other - Requires storing the sequence of events client-side, so an additional stralloc, bleh - The visible struct ftrigr_s changes, so a major bump is needed -> prepare for 2.6.0.0 - ftrigr_check() is now a trivial wrapper around ftrigr_checksa() --- doc/libs6/ftrigr.html | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'doc/libs6') diff --git a/doc/libs6/ftrigr.html b/doc/libs6/ftrigr.html index 3a32c7e..cc9e37a 100644 --- a/doc/libs6/ftrigr.html +++ b/doc/libs6/ftrigr.html @@ -266,5 +266,26 @@ times that an event happened to this identifier since the last call to ftrigr_check(). +
+int ftrigr_checksa (ftrigr_t *a, uint16_t id, stralloc *what)
+
+ +

+ Checks whether an event happened to id. Use after a +call to ftrigr_update(), as an alternative to ftrigr_check(). +

+ + + -- cgit 1.4.1