[Bug 794153] GstPromise is weird
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Wed Mar 7 14:11:30 UTC 2018
https://bugzilla.gnome.org/show_bug.cgi?id=794153
--- Comment #2 from Jan Alexander Steffens (heftig) <jan.steffens at gmail.com> ---
> Nothing forces you to have strings for values.
I mean the structure has a name itself as well as a map of string keys to
GValues.
> Already the case for interrupt. Expiration is the other way around and signals that a value will never be produced to avoid pesky deadlocks waiting for a promise.
So EXPIRED was meant for the producer to notify a consumer that there won't be
a reply? Why not use a reply for this as well?
> The consumer can signal INTERRUPTED for saying it doesn't want the producer (promiser) to produce the result anymore.
The producer needs to poll for this signal by checking the promise result.
There's only one callback on the promise for use by the consumer.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list