MCPcopy Create free account
hub / github.com/alibaba/PhotonLibOS / unlock

Method unlock

thread/thread.cpp:1633–1636  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1631 }
1632
1633 void ticket_spinlock::unlock() {
1634 const auto successor = serv.load(std::memory_order_relaxed) + 1;
1635 serv.store(successor, std::memory_order_release);
1636 }
1637
1638 inline int waitq_translate_errno(int ret)
1639 {

Callers 15

lock_callbackMethod · 0.45
wait_checkMethod · 0.45
wait_completionMethod · 0.45
response_senderMethod · 0.45
st_mutex_unlockFunction · 0.45
indirect_lockFunction · 0.45
~ScopedLockHeadMethod · 0.45
spinlock_unlockFunction · 0.45
lockMethod · 0.45
wait_interruptibleMethod · 0.45
dtorMethod · 0.45

Calls 4

do_mutex_unlockFunction · 0.85
unlikelyFunction · 0.50
loadMethod · 0.45
notify_oneMethod · 0.45

Tested by 4

rwlocktestFunction · 0.36
TESTFunction · 0.36
smprwlocktestFunction · 0.36
TESTFunction · 0.36