]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
simple_spin: use file-scope global not function
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Sat, 4 Jun 2011 01:15:11 +0000 (18:15 -0700)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Sat, 4 Jun 2011 01:15:11 +0000 (18:15 -0700)
commit4abdf6fda4585235e653d86ba823815b44c92b34
treee543c437b9a53bca038f52d15cd3a7387de20dd4
parentec18be530a73a89f1176277ad228f270a13b5831
simple_spin: use file-scope global not function

function-scoped globals are protected by a mutex, and taking a mutex
inside a spin lock implementation kind of defeats the point...

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
src/common/simple_spin.cc