| 21 | |
| 22 | |
| 23 | ConsumerBP *ConsumerBP::GetThreadInstance() { |
| 24 | static thread_local ConsumerBP *bp{nullptr}; |
| 25 | if (!bp) { |
| 26 | bp = plugin::BreakPointFactory::GetInstance()->NewConsumerBP().release(); |
| 27 | } |
| 28 | if (!bp) { |
| 29 | bp = new ConsumerBP(); |
| 30 | } |
| 31 | assert(bp); |
| 32 | |
| 33 | return bp; |
| 34 | } |
| 35 | |
| 36 | ConsumerConsumeBP *ConsumerConsumeBP::GetThreadInstance() { |
| 37 | static thread_local ConsumerConsumeBP *bp{nullptr}; |
nothing calls this directly
no test coverage detected