MCPcopy Create free account
hub / github.com/Tencent/phxqueue / main

Function main

phxqueue/test/test_producer_main.cpp:25–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23
24
25int main(int argc, char ** argv) {
26 comm::LogFunc log_func;
27 plugin::LoggerGoogle::GetLogger("test_producer", "/tmp/phxqueue/log", 3, log_func);
28
29 producer::ProducerOption opt;
30 opt.log_func = log_func;
31
32 test::SimpleProducer producer(opt);
33 producer.Init();
34 producer.Enqueue(1000, 123, 1, "buffer", 1);
35
36 return 0;
37}
38

Callers

nothing calls this directly

Calls 2

EnqueueMethod · 0.80
InitMethod · 0.45

Tested by

no test coverage detected