/home/oan/prosjekt/gotools/segmentation/gpl_distro/lsseg_1.0_gpl/include/simplethreads.h File Reference

File containing functionality for multiple threads. Can be used for parallellization of computationally-heavy routine. It is written by Jens-Olav Nygaard, and is not part of the lsseg library as such. More...

#include <stdio.h>
#include <pthread.h>

Go to the source code of this file.

Defines

#define CRIT_ERR(stmnt)   printf("\nIn file %s, line %d:\n ", __FILE__, __LINE__), (stmnt), exit(0)
#define THREADSTUFF_H_INCLUDED

Functions

void do_threaded_jobs (void(*do_a_job)(const int, const int, void *const, void *const), void *job_data_struct_array, const int threads, const int jobs, const bool show_progress, void *const results)


Detailed Description

File containing functionality for multiple threads. Can be used for parallellization of computationally-heavy routine. It is written by Jens-Olav Nygaard, and is not part of the lsseg library as such.

Definition in file simplethreads.h.


Define Documentation

#define CRIT_ERR ( stmnt   )     printf("\nIn file %s, line %d:\n ", __FILE__, __LINE__), (stmnt), exit(0)

Definition at line 42 of file simplethreads.h.

#define THREADSTUFF_H_INCLUDED

Definition at line 119 of file simplethreads.h.


Function Documentation

void do_threaded_jobs ( void(*)(const int, const int, void *const, void *const)  do_a_job,
void *  job_data_struct_array,
const int  threads,
const int  jobs,
const bool  show_progress,
void *const   results 
)

Definition at line 224 of file simplethreads.C.


Generated on Tue Nov 28 18:35:47 2006 for lsseg by  doxygen 1.4.7