MCPcopy 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

pushMethod · 0.45
popMethod · 0.45
pushMethod · 0.45
popMethod · 0.45
waitMethod · 0.45
signal_implMethod · 0.45
pushMethod · 0.45
popMethod · 0.45
pdr_lockFunction · 0.45

Calls 2

atomic_thread_fenceFunction · 0.85
assertClass · 0.85

Tested by

no test coverage detected