Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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_callback
Method · 0.45
wait_check
Method · 0.45
wait_completion
Method · 0.45
response_sender
Method · 0.45
st_mutex_unlock
Function · 0.45
_move_to_standbyq_atomic
Method · 0.45
indirect_lock
Function · 0.45
~ScopedLockHead
Method · 0.45
spinlock_unlock
Function · 0.45
lock
Method · 0.45
wait_interruptible
Method · 0.45
dtor
Method · 0.45
Calls
4
do_mutex_unlock
Function · 0.85
unlikely
Function · 0.50
load
Method · 0.45
notify_one
Method · 0.45
Tested by
4
rwlocktest
Function · 0.36
TEST
Function · 0.36
smprwlocktest
Function · 0.36
TEST
Function · 0.36