| 573 | static atomic_flag g_application_tmp_lock = ATOMIC_FLAG_INIT; |
| 574 | |
| 575 | static void application_tmp_lock(void) { |
| 576 | while (atomic_flag_test_and_set_explicit(&g_application_tmp_lock, memory_order_acquire)) { |
| 577 | cbm_usleep(1000); |
| 578 | } |
| 579 | } |
| 580 | |
| 581 | static void application_tmp_unlock(void) { |
| 582 | atomic_flag_clear_explicit(&g_application_tmp_lock, memory_order_release); |
no outgoing calls
no test coverage detected