add ability to release/free monitor resources to common/glib/gobject api

Bug #612868 reported by Alexander Sack
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ntrack
Fix Released
High
Alexander Sack

Bug Description

current api lacks ability to release/free the monitor.

This requires addition of freeing a monitor to the common api as well as hooking this properly up to the glib source implementation. On top this bug should ensure that gobject singleton implementation is properly ref countable and freeable.

Related branches

Alexander Sack (asac)
Changed in ntrack:
status: New → Triaged
importance: Undecided → High
milestone: none → 009
Revision history for this message
Alexander Sack (asac) wrote :

landed fix for common backend api:

bzr commit -m "common[arch]: extend backend api to require _ntrack_arch_free; implement this in ntrack-libnl.c (lp:612868)" --fixes lp:612868
Committing to: /home/asac/Development/upstream/asac/ntrack/
modified common/ntrack-arch.h
modified common/ntrack-libnl.c
Committed revision 198.

Revision history for this message
Alexander Sack (asac) wrote :

also added refcounting facilities to common monitor api

------------------------------------------------------------
revno: 200
committer: Alexander Sack <email address hidden>
branch nick: ntrack
timestamp: Tue 2010-08-10 21:53:35 +0200
message:
  common: introduce refcounting to monitor singleton api; old code is supposed to still work; free arch backend if refc becomes 0
------------------------------------------------------------

Revision history for this message
Alexander Sack (asac) wrote :

and hooked up the new refcounting facilities provided in monitor api to implement proper lifecycle for glib monitor gsource:

------------------------------------------------------------
revno: 202
fixes bug(s): https://launchpad.net/bugs/612868
committer: Alexander Sack <email address hidden>
branch nick: ntrack
timestamp: Tue 2010-08-10 22:24:48 +0200
message:
  glib: hook up ntrack monitor refcounting and implement proper gsource lifecycle
------------------------------------------------------------

Changed in ntrack:
assignee: nobody → Alexander Sack (asac)
Revision history for this message
Alexander Sack (asac) wrote :

gobject part seemed to be ok already; anyway, i added a simple recycle test for it too ...

------------------------------------------------------------
revno: 205
committer: Alexander Sack <email address hidden>
branch nick: ntrack
timestamp: Tue 2010-08-10 22:54:05 +0200
message:
  gobject[test]: add recycle test that verifies that unrefing a gmonitor works
------------------------------------------------------------

Changed in ntrack:
status: Triaged → Fix Committed
Revision history for this message
Alexander Sack (asac) wrote :

and fixed qt part too:

------------------------------------------------------------
revno: 206
fixes bug(s): https://launchpad.net/bugs/612868
committer: Alexander Sack <email address hidden>
branch nick: ntrack
timestamp: Tue 2010-08-10 22:58:16 +0200
message:
  qt4: use ntrack_monitor_put to properly unref the monitor in QNtrack destructor
------------------------------------------------------------

Revision history for this message
Alexander Sack (asac) wrote :
Changed in ntrack:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.