| 31 | butil::atomic<int> g_bthread_once_count(0); |
| 32 | |
| 33 | void init_routine() { |
| 34 | bthread_usleep(2000 * 1000); |
| 35 | g_bthread_once_count.fetch_add(1, butil::memory_order_relaxed); |
| 36 | } |
| 37 | |
| 38 | void bthread_once_task() { |
| 39 | bthread_once(&g_bthread_once_control, init_routine); |
no test coverage detected