tree-wide: use g_clear_handle_id() for GSource cleanup
cover tree-wide: use g_clear_handle_id() for GSource cleanup
This series replaces open-coded uses of g_source_remove() with g_clear_handle_id() across the tree.
This is a more modern (GLib >= 2.56) approach than directly calling g_source_remove().
g_clear_handle_id() simplifies cleanup of GSource IDs since it checks the ID is valid, calls the cleanup function and zeros the ID.
This reduces boilerplate and avoids open-coded calls to g_source_remove().
This series follows an earlier fix that removed a dangling GSource tag and replaced an explicit call to g_source_remove() with g_clear_handle_id().
No functional changes.
Quoted 12 lines · Matthew Penney
This series replaces open-coded uses of
g_source_remove()withg_clear_handle_id()across the tree.This is a more modern (GLib >= 2.56) approach than directly calling
g_source_remove().
g_clear_handle_id()simplifies cleanup of GSource IDs since it checks the ID is valid, calls the cleanup function and zeros the ID.This reduces boilerplate and avoids open-coded calls to
g_source_remove().
Quoted 7 lines
This series follows an earlier fix that removed a dangling GSource tag and replaced an explicit call to
g_source_remove()withg_clear_handle_id().No functional changes.
Looking at your git repo fork, while the commits are creditted under your name, all the activity on the repo appears to have done by a bot account:
https://gitlab.com/mj-penney/qemu/activity
What's the situation here with authorship ?
With regards,
Daniel
Signature · 3 lines
|: https://berrange.com ~~ https://hachyderm.io/@berrange :| |: https://libvirt.org ~~ https://entangle-photo.org :| |: https://pixelfed.art/berrange ~~ https://fstop138.berrange.com :|
Hi Daniel,
Thanks for the quick response.
I can confirm that I authored the commits in the series - the 'QEMU Token' user just corresponds to the project access token I created and used to push my work.
The redundant branches (e.g. 'b4/g-source-cleanup') were from previous attempts to format and send the series properly.
Hopefully this clears up any confusion around authorship.
Best regards,
Matthew
Sent with Proton Mail secure email.
Quoted 37 lines · Daniel P. Berrangé
Quoted 12 lines · Matthew Penney
This series replaces open-coded uses of
g_source_remove()withg_clear_handle_id()across the tree.This is a more modern (GLib >= 2.56) approach than directly calling
g_source_remove().
g_clear_handle_id()simplifies cleanup of GSource IDs since it checks the ID is valid, calls the cleanup function and zeros the ID.This reduces boilerplate and avoids open-coded calls to
g_source_remove().Quoted 7 lines
This series follows an earlier fix that removed a dangling GSource tag and replaced an explicit call to
g_source_remove()withg_clear_handle_id().No functional changes.
Looking at your git repo fork, while the commits are creditted under your name, all the activity on the repo appears to have done by a bot account:
https://gitlab.com/mj-penney/qemu/activity
What's the situation here with authorship ?
With regards,
Daniel
--|: https://berrange.com ~~ https://hachyderm.io/@berrange :| |: https://libvirt.org ~~ https://entangle-photo.org :| |: https://pixelfed.art/berrange ~~ https://fstop138.berrange.com :|