]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common: move SharedPtrRegistry test after t.join 544/head
authorLoic Dachary <loic@dachary.org>
Tue, 27 Aug 2013 11:58:33 +0000 (13:58 +0200)
committerLoic Dachary <loic@dachary.org>
Tue, 27 Aug 2013 11:59:57 +0000 (13:59 +0200)
commitaf5281e0f672554a322fef826d2229f563ae8577
treec14c157a0a9d041f67c46944b745fc7a18517bdd
parenta6fe776c3a04ddbc015ca104fa67ea8248bd0df9
common: move SharedPtrRegistry test after t.join

The thread created to test SharedPtrRegistry race conditions updates a
value ( ptr ) that is tested by the main gtest thread but is not
protected by a lock. Instead of adding a lock, the main thread tests
the value after pthread_join() on the child thread.

http://tracker.ceph.com/issues/6130 fixes #6130

Signed-off-by: Loic Dachary <loic@dachary.org>
src/test/common/test_sharedptr_registry.cc