[RFC] Reference counting on Audio objects for /dev/dsp

2004-07-15 Thread Igor Pechtchanski
Gerd, I'd really like your comments on this patch. As I reported before, it didn't quite work for me, but with the recent problems in testing another (presumably working) patch, I suspect my test procedure isn't quite correct anyway. The patch basically adds a (very problem-specific) reference c

Re: [RFC] Reference counting on Audio objects for /dev/dsp

2004-07-15 Thread Christopher Faylor
On Thu, Jul 15, 2004 at 09:44:34AM -0400, Igor Pechtchanski wrote: >Gerd, > >I'd really like your comments on this patch. As I reported before, it >didn't quite work for me, but with the recent problems in testing another >(presumably working) patch, I suspect my test procedure isn't quite >correc

Re: [RFC] Reference counting on Audio objects for /dev/dsp

2004-07-15 Thread Igor Pechtchanski
On Thu, 15 Jul 2004, Christopher Faylor wrote: > On Thu, Jul 15, 2004 at 09:44:34AM -0400, Igor Pechtchanski wrote: > >Gerd, > > > >I'd really like your comments on this patch. As I reported before, it > >didn't quite work for me, but with the recent problems in testing another > >(presumably wor

Re: [RFC] Reference counting on Audio objects for /dev/dsp

2004-07-15 Thread Christopher Faylor
On Thu, Jul 15, 2004 at 02:57:17PM -0400, Igor Pechtchanski wrote: >> 2) The other problem is that I find it sort of odd to see the dec() >> method performing a deletion. Couldn't this be handled where, IMO, >> it should logically be handled, in the close function, e.g., >> >> if (!audio_out_->d

Re: [RFC] Reference counting on Audio objects for /dev/dsp

2004-07-15 Thread Igor Pechtchanski
On Thu, 15 Jul 2004, Christopher Faylor wrote: > On Thu, Jul 15, 2004 at 02:57:17PM -0400, Igor Pechtchanski wrote: > >> 2) The other problem is that I find it sort of odd to see the dec() > >> method performing a deletion. Couldn't this be handled where, IMO, > >> it should logically be handled,

Re: [RFC] Reference counting on Audio objects for /dev/dsp

2004-07-15 Thread Christopher Faylor
On Thu, Jul 15, 2004 at 04:28:56PM -0400, Igor Pechtchanski wrote: >On Thu, 15 Jul 2004, Christopher Faylor wrote: > >> On Thu, Jul 15, 2004 at 02:57:17PM -0400, Igor Pechtchanski wrote: >> >> 2) The other problem is that I find it sort of odd to see the dec() >> >> method performing a deletion. C