]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
WorkQueue: don't deliberately leak memory
authorGreg Farnum <gregory.farnum@dreamhost.com>
Tue, 6 Sep 2011 20:59:14 +0000 (13:59 -0700)
committerGreg Farnum <gregory.farnum@dreamhost.com>
Thu, 8 Sep 2011 16:51:10 +0000 (09:51 -0700)
commit676dc9ce6a485ec1fbd4ed03fce89109e64290d4
tree4ea6bc841b46b9fa7655ce491c88525bea980b73
parentc164904db4245d37da3c36d0e74970f53a78b90a
WorkQueue: don't deliberately leak memory

We can't do that if we're trying to be Valgrind-clean, so just
make the lock name part of the class.
As best I can tell, that ordered initialization is safe because
data members are initialized in the order they are declared. See eg
http://xenon.arcticus.com/c-morsels-initializer-list-execution-order

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
src/common/WorkQueue.h