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

Function rte_thread_join

dpdk/lib/eal/unix/rte_thread.c:227–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225}
226
227int
228rte_thread_join(rte_thread_t thread_id, uint32_t *value_ptr)
229{
230 int ret = 0;
231 void *res = (void *)(uintptr_t)0;
232 void **pres = NULL;
233
234 if (value_ptr != NULL)
235 pres = &res;
236
237 ret = pthread_join((pthread_t)thread_id.opaque_id, pres);
238 if (ret != 0) {
239 RTE_LOG(DEBUG, EAL, "pthread_join failed\n");
240 return ret;
241 }
242
243 if (value_ptr != NULL)
244 *value_ptr = (uint32_t)(uintptr_t)res;
245
246 return 0;
247}
248
249int
250rte_thread_detach(rte_thread_t thread_id)

Callers 15

rte_thread_createFunction · 0.70
rxa_destroy_intr_threadFunction · 0.50
rte_mp_channel_cleanupFunction · 0.50
ifpga_monitor_stop_funcFunction · 0.50
ipn3ke_rpst_scan_checkFunction · 0.50
skeldma_stopFunction · 0.50

Calls

no outgoing calls

Tested by 6

test_non_eal_lcoresFunction · 0.40
test_ctrl_threadFunction · 0.40
test_thread_create_joinFunction · 0.40
process_dupFunction · 0.40