|
|
Data Structures | |
| struct | FLGR_ThreadsArg |
| struct | FLGR_ThreadsArgList |
Typedefs | |
| typedef int(* | FLGR_ThreadFunction )(void *param) |
Functions | |
| FLGR_ThreadsArgList * | flgr_threads_create_argument_list (int threads_nb) |
| void | flgr_threads_destroy_argument_list (FLGR_ThreadsArgList *arglist) |
| void | flgr_threads_set_argument (FLGR_ThreadsArgList *arglist, int thread_index,...) |
| FLGR_Ret | flgr_threads_start (FLGR_ThreadsArgList *arglist, int threads_nb_per_fct, int threads_fct_nb,...) |
| typedef int(* FLGR_ThreadFunction)(void *param) |
Pointer to a threaded function
Definition at line 41 of file flgrCoreThreads.h.
| FLGR_ThreadsArgList* flgr_threads_create_argument_list | ( | int | threads_nb | ) |
Create and allocate the threads arguments list
| threads_nb | : total number of threads |
Definition at line 42 of file flgrCoreThreads.c.
| void flgr_threads_destroy_argument_list | ( | FLGR_ThreadsArgList * | arglist | ) |
destroy the threads arguments list. Threads Argument pointer to user data must be freed before.
| arglist | : FLGR_ThreadsArgList pointer |
Definition at line 97 of file flgrCoreThreads.c.
| void flgr_threads_set_argument | ( | FLGR_ThreadsArgList * | arglist, | |
| int | thread_index, | |||
| ... | ||||
| ) |
Store argument of a thread into the threads arguments list
| arglist | : FLGR_ThreadsArgList pointer | |
| thread_index | : which thread to store arguments |
Definition at line 68 of file flgrCoreThreads.c.
| FLGR_Ret flgr_threads_start | ( | FLGR_ThreadsArgList * | arglist, | |
| int | threads_nb_per_fct, | |||
| int | threads_fct_nb, | |||
| ... | ||||
| ) |
Start threads
| arglist | : FLGR_ThreadsArgList pointer | |
| threads_nb_per_fct | : number of thread per function | |
| threads_fct_nb | : number of different functions to use as thread |
Definition at line 126 of file flgrCoreThreads.c.
1.5.6