Top |
void | (*NcmFuncEvalLoop) () |
void | ncm_func_eval_set_max_threads () |
void | ncm_func_eval_threaded_loop_nw () |
void | ncm_func_eval_threaded_loop () |
void | ncm_func_eval_threaded_loop_full () |
void | ncm_func_eval_log_pool_stats () |
Thread pool based function evaluator. This module is used by the different objects in NumCosmo that need to evaluate functions in parallel.
void
ncm_func_eval_set_max_threads (gint mt
);
Set the new maximun number of threads to be used by the pool. Note that this function is global changing this will affect every place which uses these functions.
void ncm_func_eval_threaded_loop_nw (NcmFuncEvalLoop lfunc
,glong i
,glong f
,gpointer data
,guint nworkers
);
Using the thread pool, evaluate fl
in each value of (f
-i
)/nwork
.
lfunc |
NcmFuncEvalLoop to be evaluated in threads. |
[scope notified] |
i |
initial index |
|
f |
final index |
|
data |
pointer to be passed to |
|
nworkers |
number of workers. |
void ncm_func_eval_threaded_loop (NcmFuncEvalLoop lfunc
,glong i
,glong f
,gpointer data
);
Using the thread pool, evaluate fl
in each value of (f
-i
)/nthreads
lfunc |
NcmFuncEvalLoop to be evaluated in threads. |
[scope notified] |
i |
initial index |
|
f |
final index |
|
data |
pointer to be passed to |
void ncm_func_eval_threaded_loop_full (NcmFuncEvalLoop lfunc
,glong i
,glong f
,gpointer data
);
Using the thread pool, evaluate fl
sending one worker per index.
lfunc |
NcmFuncEvalLoop to be evaluated in threads. |
[scope notified] |
i |
initial index |
|
f |
final index |
|
data |
pointer to be passed to |