MCPcopy Create free account
hub / github.com/F-Stack/f-stack / thread_main

Function thread_main

dpdk/app/test/test_threads.c:16–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14static uint32_t thread_id_ready;
15
16static uint32_t
17thread_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
30static int
31test_thread_create_join(void)

Callers

nothing calls this directly

Calls 1

rte_thread_selfFunction · 0.50

Tested by

no test coverage detected