MCPcopy Create free account
hub / github.com/ceph/ceph / notify_one

Method notify_one

src/common/condition_variable_debug.cc:35–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35void condition_variable_debug::notify_one()
36{
37 // make sure signaler is holding the waiter's lock.
38 ceph_assert(waiter_mutex == nullptr ||
39 waiter_mutex->is_locked());
40 if (int r = pthread_cond_signal(&cond); r != 0) {
41 throw std::system_error(r, std::generic_category());
42 }
43}
44
45void condition_variable_debug::notify_all(bool sloppy)
46{

Callers 15

wait_until_doneFunction · 0.45
~ClientMethod · 0.45
shutdownMethod · 0.45
_unmountMethod · 0.45
unlock_fh_posMethod · 0.45
async_perform_opMethod · 0.45
_queue_discardMethod · 0.45
push_frontMethod · 0.45
pop_backMethod · 0.45
_txc_state_procMethod · 0.45
_osr_drain_precedingMethod · 0.45
_osr_drainMethod · 0.45

Calls 1

is_lockedMethod · 0.45

Tested by 15

notifyMethod · 0.36
finishMethod · 0.36
handle_unquiesceMethod · 0.36
handle_notifyMethod · 0.36
handle_unquiesceMethod · 0.36
handle_quiesceMethod · 0.36
proceedMethod · 0.36
interceptMethod · 0.36
io_callbackFunction · 0.36
write_fsync_io_callbackFunction · 0.36
test_backoffFunction · 0.36