pw_stream_trigger_process() documentation clarifications
Currently, there are a couple of things that are unclear about the pw_stream_trigger_process()
function:
- can the
pw_stream_events.process
callback be called some time later afterpw_stream_trigger_process()
is called or will it be called immediately? This kind of information can be valuable because it would indicate whether one needs to guard the code against unexpected cases caused by async triggering; for example, when screencasting a window, the process callback may need a guard for the case where the window gets closed after pw_stream_trigger_process(). but if it's all synchronous, then no guard is needed. - if the
process
callback can be scheduled to be called later, what will happen ifpw_stream_trigger_process()
gets called twice before thepw_stream_events.process
function is called? - when the compositor drives the stream, can the
pw_stream_events.process
function be called without the compositor callingpw_stream_trigger_process()
?