mlt_events are little more than run-time configurable, named callbacks. No,
they are not inherently asynchronous. However, a listener might be entered
from a thread other than one of your service's threads. Also, a listener
could handle an event asynchronously with its own threads and queues. The
mlt_event is entered on the thread of the caller. Blocking prevents events
from emission or "firing". So, yes, events will be "lost" when they are
blocked.


On Wed, Jul 27, 2016 at 10:27 AM Paweł Goliński <golp...@gmail.com> wrote:

> Hi,
>
> I’m wondering, how do MLT events work? From what I’m
> seeing in code, they’re not asynchronous at all, is that right?
> (Meaning, there are no listener threads nor anything like that,
> it’s all being called synchronously when we do mlt_events_fire()).
>
> Also, in code of some MLT modules, I see a lot of
> snippets like this one:
>
> mlt_events_block( properties, properties );
> mlt_properties_set( properties, „something”, „foobar” );
> mlt_events_unblock( properties, properties );
>
> My question is - how this blocking/unblocking work?
> From what I saw in code, when someone fires an event,
> and the block_count is > 0, then no listener gets called,
> and the event is lost forever. Am I right?
>
>
>
> Best,
> Paweł
>
> ------------------------------------------------------------------------------
> What NetFlow Analyzer can do for you? Monitors network bandwidth and
> traffic
> patterns at an interface-level. Reveals which users, apps, and protocols
> are
> consuming the most bandwidth. Provides multi-vendor support for NetFlow,
> J-Flow, sFlow and other flows. Make informed decisions using capacity
> planning
> reports.http://sdm.link/zohodev2dev
> _______________________________________________
> Mlt-devel mailing list
> Mlt-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mlt-devel
>
------------------------------------------------------------------------------
_______________________________________________
Mlt-devel mailing list
Mlt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlt-devel

Reply via email to