MCPcopy Create free account
hub / github.com/alibaba/PhotonLibOS / ring_queue_writer

Function ring_queue_writer

common/test/test.cpp:118–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118void* ring_queue_writer(void* arg)
119{
120 rq_test_exited = false;
121 DEFER(rq_test_exited = true);
122 auto* b = (RingBuffer*)arg;
123 for (int i = 0; i< 10; ++i)
124 {
125 LOG_DEBUG("write");
126 auto ret = b->write(str, LEN(str));
127 EXPECT_EQ(ret, LEN(str));
128 LOG_DEBUG("written ", VALUE(ret));
129 }
130 LOG_DEBUG("exit");
131 return nullptr;
132}
133
134TEST(ring, buffer)
135{

Callers

nothing calls this directly

Calls 2

LENFunction · 0.50
writeMethod · 0.45

Tested by

no test coverage detected