| 14 | static uint32_t thread_id_ready; |
| 15 | |
| 16 | static uint32_t |
| 17 | thread_main(void *arg) |
| 18 | { |
| 19 | if (arg != NULL) |
| 20 | *(rte_thread_t *)arg = rte_thread_self(); |
| 21 | |
| 22 | __atomic_store_n(&thread_id_ready, 1, __ATOMIC_RELEASE); |
| 23 | |
| 24 | while (__atomic_load_n(&thread_id_ready, __ATOMIC_ACQUIRE) == 1) |
| 25 | ; |
| 26 | |
| 27 | return 0; |
| 28 | } |
| 29 | |
| 30 | static int |
| 31 | test_thread_create_join(void) |
nothing calls this directly
no test coverage detected