Reference counting borked?



The reference counting for the devices seems a bit strange. Seeing how
it never reaches zero upon exit something is either not freeing up its
references or the initial count is too high.

The initial count seems to include a reference from the worker thread
(judging by the comment). But that creates a circular dependency since
the worker thread never releases its reference until it is stopped. And
it isn't stopped until all references are removed.

Rgds
Pierre



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]