[mythtv-firehose] mythtv/jobqueue-rewrite commit: 0042a7294 by Raymond Wagner (wagnerrp)

MythTV noreply at mythtv.org
Fri May 13 17:59:46 UTC 2011


      Author:  Raymond Wagner <rwagner at mythtv.org>
 Change Date:  2011-05-13T10:45:00-07:00
   Push Date:  2011/05/13 10:59:40 -0700
  Repository:  mythtv
      Branch:  jobqueue-rewrite
New Revision:  0042a729489150cd9d03756c80317c4ac1d8c432
   Changeset:  https://github.com/MythTV/mythtv/commit/0042a7294

Log:

Add base ReferenceCounter class for use with objects that exist in
multiple locations as a shared pointer.  When the reference count hits
zero, the object will self delete.

Add a ReferenceLocker as a context manager, which will increment the
counter on creation, and decrement on destruction.

Added:

   mythtv/libs/libmythbase/referencecounter.cpp
   mythtv/libs/libmythbase/referencecounter.h



More information about the mythtv-firehose mailing list