diff options
author | Jose Bollo <jose.bollo@iot.bzh> | 2019-07-11 18:20:23 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2019-07-12 15:49:32 +0200 |
commit | 248ec5dafada74c829dbe197888166c5807e22e2 (patch) | |
tree | 47e9d3c805faab92c04eba107283fbbeaef615fe /include/afb/afb-event-x2.h | |
parent | 909893eb96838441b64272a649764367dfd69557 (diff) |
afb-evt: send events in separate job
Sending events in the context of the calling process
had the consequence that the ordering of the messages
had to be removed (see SPEC-2215 & SPEC-2219). This
was not good by nature and lead to issues SPEC-2542
and SPEC-2599.
Sending events in the context of the calling process
also implies to delay the calling process.
For this reasons, sending events is now done in an
other jobs. For that reason, the count of allowed
pending jobs is increased to 100 (was 50).
Bug-AGL: SPEC-2215
Bug-AGL: SPEC-2219
Bug-AGL: SPEC-2542
Bug-AGL: SPEC-2599
Change-Id: I5b56d952cc187b65ad6eb9344ad74e5e8d3b7540
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'include/afb/afb-event-x2.h')
-rw-r--r-- | include/afb/afb-event-x2.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/afb/afb-event-x2.h b/include/afb/afb-event-x2.h index 097234f1..daf88d6b 100644 --- a/include/afb/afb-event-x2.h +++ b/include/afb/afb-event-x2.h @@ -45,7 +45,7 @@ static inline int afb_event_x2_is_valid(struct afb_event_x2 *event) * @param event the event to broadcast * @param object the companion object to associate to the broadcasted event (can be NULL) * - * @return the count of clients that received the event. + * @return 0 in case of success or -1 in case of error */ static inline int afb_event_x2_broadcast( struct afb_event_x2 *event, @@ -65,7 +65,10 @@ static inline int afb_event_x2_broadcast( * @param event the event to push * @param object the companion object to associate to the pushed event (can be NULL) * - * @return the count of clients that received the event. + * @Return + * * 1 if at least one client listen for the event + * * 0 if no more client listen for the event + * * -1 in case of error (the event can't be delivered) */ static inline int afb_event_x2_push( struct afb_event_x2 *event, |