Skip to content
Snippets Groups Projects

Bus: Add BusWatchGuard to automatically remove watch

Merged Johan Sternerup requested to merge johast/gstreamer-rs:bus_watch into main

Previously, with add_watch()/add_watch_local() you had to remember calling remove_watch() in order not to leak the bus, the watch source and two associated file descriptors. Now these methods instead returns an object of type BusWatchGuard that will automatically remove the bus watch when the object is dropped.

Edited by Johan Sternerup

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading