]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph_context: use condition variable for wake-up 771/head
authorNoah Watkins <noahwatkins@gmail.com>
Sat, 12 Oct 2013 21:39:19 +0000 (14:39 -0700)
committerNoah Watkins <noahwatkins@gmail.com>
Mon, 28 Oct 2013 20:04:29 +0000 (13:04 -0700)
commitc7d975aeadf908d11577c480fa0a2e831d069c55
tree9e6be595c2208559d3bf72ffac962847a52b17aa
parent289b7903407ce1b34f1afe9e0c769093c14d0ba9
ceph_context: use condition variable for wake-up

reopen_logs is called from normal thread context (as opposed to an async
signal handler), so we grab a mutex and condition variables. The mutex
use also allows us to avoid volatile variables since the mutex will add
any necessary barriers.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
src/common/ceph_context.cc