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

Function ff_start_routine

lib/ff_thread.c:20–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20static
21void* ff_start_routine(void * data) {
22 struct thread_data *p_data = (struct thread_data *) data;
23
24 void * (* start_routine) (void *) = p_data->start_routine;
25 void *arg = p_data->arg;
26 ff_set_thread(p_data->parent);
27 ff_free(data);
28 start_routine(arg);
29 return NULL;
30}
31
32int
33ff_pthread_create(pthread_t *thread, const pthread_attr_t * attr, void * (* start_routine) (void *), void * arg) {

Callers

nothing calls this directly

Calls 2

ff_set_threadFunction · 0.85
ff_freeFunction · 0.85

Tested by

no test coverage detected