module Generated: sig
.. end
We keep the generator in an instance variable so that derived
classes can access it. There are concurrency issues, though:
- In classes such as http_source, the generator is fed concurrently
with its consumption. But in that case a thread-safe implementation
of Generator is used.
- In any case there is always concurrency in this class, with #get
on one hand and #is_ready, #abort_track and #seek that can be
called from other threads. We use the generator_lock to avoid
the only bad interference, ie. #get_frame vs #seek.
module Make:
module From_audio_video_plus: Make
(
Generator.From_audio_video_plus
)