gst-plugins-rs/generic/threadshare/src
François Laignel 885d3de7bb ts/udpsink: reduce sync primitives in async hot path
The way the runtime::Task is implemented, UdpSinkTask is available
as a mutable ref in all the TaskImpl functions, which offers the
opportunity to avoid using Mutexes.

Main higlights:

- Removed the back and forth calls between UdpSinkPadHandler
  and UdpSinkTask.
- Udp sockets are now part of UdpSinkTask, which is also in
  charge of preparing them instead of leaving this to UdpSink.
  This removed the need for Context::enter since
  TaskImpl::prepare already operates under the target Context.
- In order for the clients list to be visible from the UdpSink,
  this list was maintained by UdpSinkPadHandler which was also
  in charge of (un)configuring the Udp sockets. The sockets are
  now part of UdpSinkTask, which is also in charge of the
  (un)configuration. Add/remove/replace requests are passed as
  commands to the UdpSinkTask via a channel.
- The clients list visible to the UdpSink is now part of the
  Settings (it is also a read/write property). Since the actual
  socket (un)configuration is asynchronously handled by the Task,
  the clients list is updated by the add/remove/replace signals
  and set_property("clients", ..). Should a problem occur during
  the async (un)configuration, and only in this case, the
  UdpSinkTask would update the clients lists in Settings
  accordingly so that it stays consistent with the internal state.
- The function clear_clients was renamed as replace_with_clients.
- clients is now based on a BTreeSet instead of a Vec. All the
  managing functions perform some sort of lookup prior to updating
  the collection. It also ease implementation.
- Removed the UdpSinkPadHandler RwLock. Using flume channels, we
  are able to clone the Receiver so it can be stored in UdpSink
  and reused when preparing the UdpSinkTask.
2022-07-09 17:03:21 +00:00
..
appsrc Fix/silence a couple new clippy warnings 2022-06-30 16:07:32 +03:00
inputselector Remove now unnecessary Send+Sync impls for element/etc subclasses 2022-02-28 18:56:58 +02:00
jitterbuffer ts-jitterbuffer: set jbuf delay when instantiating it 2022-05-11 06:29:22 +00:00
proxy Remove now unnecessary Send+Sync impls for element/etc subclasses 2022-02-28 18:56:58 +02:00
queue Remove now unnecessary Send+Sync impls for element/etc subclasses 2022-02-28 18:56:58 +02:00
runtime Fix/silence a couple new clippy warnings 2022-06-30 16:07:32 +03:00
tcpclientsrc Remove now unnecessary Send+Sync impls for element/etc subclasses 2022-02-28 18:56:58 +02:00
udpsink ts/udpsink: reduce sync primitives in async hot path 2022-07-09 17:03:21 +00:00
udpsrc Remove now unnecessary Send+Sync impls for element/etc subclasses 2022-02-28 18:56:58 +02:00
dataqueue.rs Update to gst::_log_macro_ 2022-02-21 20:50:01 +01:00
lib.rs Ignore clippy::non_send_fields_in_send_ty lint 2022-01-14 12:09:57 +02:00
socket.rs Update to gst::_log_macro_ 2022-02-21 20:50:01 +01:00