P_bgtask_create 3porty 2011-04-13 libporty manual

NAME

P_bgtask_create

SYNPOSIS

#include <libporty/threads/threads.h>

typedef int (*P_bgtask_entry_t)(void *arg ); int P_bgtask_create (P_bgtask_entry_t entry , void *arg ); -lporty_util P_bgtask_create creates a new thread or process and calls entry point function entry . The thread is active as long as the function doesn't return normally. A single argument arg is passed to the thread. Returns 0 on success.

P_bgtask_create 3porty 2011-04-13 libporty manual