MCPcopy Create free account
hub / github.com/cameron314/concurrentqueue / thread

Method thread

tests/relacy/freelist.cpp:132–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130 }
131
132 void thread(unsigned int tid)
133 {
134 TestNode* node = &initialNodes[tid];
135 node->value = tid;
136 freeList.add(node);
137
138 node = freeList.try_get();
139 if (node != nullptr) {
140 freeList.add(node);
141 }
142 }
143
144 void after()
145 {

Callers

nothing calls this directly

Calls 2

addMethod · 0.45
try_getMethod · 0.45

Tested by

no test coverage detected