1
0
Fork 0
mirror of https://gitlab.com/niansa/libasync.git synced 2025-03-06 20:53:29 +01:00
Commit graph

5 commits

Author SHA1 Message Date
Kacper Słomiński
f8380eb3aa post-ack: replace std::find_if with hand-written loop
std::find_if is broken on frg::intrusive_list iterators.
2022-01-25 13:43:52 +01:00
Alexander van der Grinten
fc84b45778 post-ack: Fix locking in fast-path 2021-05-06 17:25:07 +02:00
Dennis Bonke
017d9e6eae
mutex: Fix several warnings about non-virtual destructors
oneshot-event: Fix a warning about non-virtual destructors
post-ack: Fix several warnings about non-virtual destructors
recurring-event: Fix a warning about non-virtual destructors

Signed-off-by: Dennis Bonke <admin@dennisbonke.com>
2021-05-03 00:39:23 +02:00
Alexander van der Grinten
1b20997a3f post-ack: Make poll() cancellable 2020-06-14 13:59:35 +02:00
Alexander van der Grinten
84f6b11043 post-ack: Add post_ack_mechanism<T>
This data structure can have a number of "agents" attached.
It implements the following operations:

    [async] post(T value) -> void    [Data structure]
	[async] poll() -> handle to T    [Agent]
	        ack()                    [Agent]

The semantics are as follows: post() causes poll() to return
with the given value for all agents (queue-like semantics)
but post() itself only returns once all agents called ack().
2020-06-14 10:55:10 +02:00