Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cameron314/concurrentqueue
/ lock
Method
lock
tests/relacy/relacy/example/ws_deque2/ws_deque.cpp:53–59 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
51
}
52
53
void lock()
54
{
55
std::atomic_thread_fence($)(std::memory_order_seq_cst);
56
57
assert(th[rl::ctx().threadx_->index_] == defer_limit);
58
th[rl::ctx().threadx_->index_] = pos;
59
}
60
61
void unlock()
62
{
Callers
9
push
Method · 0.45
pop
Method · 0.45
push
Method · 0.45
pop
Method · 0.45
wait
Method · 0.45
signal_impl
Method · 0.45
push
Method · 0.45
pop
Method · 0.45
pdr_lock
Function · 0.45
Calls
2
atomic_thread_fence
Function · 0.85
assert
Class · 0.85
Tested by
no test coverage detected