Mailing List Archive

mythtv/jobqueue-rewrite commit: 0042a7294 by Raymond Wagner (wagnerrp)
Author: Raymond Wagner <rwagner@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

_______________________________________________
mythtv-firehose mailing list
mythtv-firehose@mythtv.org
http://www.mythtv.org/mailman/listinfo/mythtv-firehose