Fulguro Logo Support This Project

Threads
[Core]


Data Structures

struct  FLGR_ThreadsArg
struct  FLGR_ThreadsArgList

Typedefs

typedef int(* FLGR_ThreadFunction )(void *param)

Functions

FLGR_ThreadsArgListflgr_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 Documentation

typedef int(* FLGR_ThreadFunction)(void *param)

Pointer to a threaded function

Definition at line 41 of file flgrCoreThreads.h.


Function Documentation

FLGR_ThreadsArgList* flgr_threads_create_argument_list ( int  threads_nb  ) 

Create and allocate the threads arguments list

Parameters:
threads_nb : total number of threads
Returns:
FLGR_ThreadsArgList pointer
Examples:
multithread_watershed.c.

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.

Parameters:
arglist : FLGR_ThreadsArgList pointer
Returns:
nothings
Examples:
multithread_watershed.c.

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

Parameters:
arglist : FLGR_ThreadsArgList pointer
thread_index : which thread to store arguments
Returns:
nothings
Examples:
multithread_watershed.c.

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

Parameters:
arglist : FLGR_ThreadsArgList pointer
threads_nb_per_fct : number of thread per function
threads_fct_nb : number of different functions to use as thread
Returns:
FLGR_RET_OK, ...
Examples:
multithread_watershed.c.

Definition at line 126 of file flgrCoreThreads.c.


SourceForge.net Logo
Generated on Tue Nov 11 19:17:28 2008 for Fulguro by doxygen 1.5.6