Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cameron314/concurrentqueue
/ thread
Method
thread
tests/relacy/relacy/example/stack/stack.cpp:88–95 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
86
}
87
88
void thread(unsigned /*index*/)
89
{
90
s_.push(rand() + 1);
91
produced_count_ += 1;
92
int data = s_.pop();
93
RL_ASSERT(data);
94
consumed_count_ += 1;
95
}
96
};
97
98
Callers
nothing calls this directly
Calls
3
rand
Function · 0.85
push
Method · 0.45
pop
Method · 0.45
Tested by
no test coverage detected