| 28 | BreakPointFactoryCreateFunc BreakPointFactory::break_point_factory_create_func_ = nullptr; |
| 29 | |
| 30 | BreakPointFactory *BreakPointFactory::GetInstance() { |
| 31 | static BreakPointFactory *bpf = nullptr; |
| 32 | |
| 33 | if (!bpf) { |
| 34 | if (break_point_factory_create_func_) bpf = break_point_factory_create_func_().release(); |
| 35 | else bpf = new BreakPointFactory(); |
| 36 | } |
| 37 | |
| 38 | assert(bpf); |
| 39 | return bpf; |
| 40 | } |
| 41 | |
| 42 | unique_ptr<comm::ConsumerBP> BreakPointFactory::NewConsumerBP() { |
| 43 | return unique_ptr<comm::ConsumerBP>(new comm::ConsumerBP()); |
nothing calls this directly
no outgoing calls
no test coverage detected