Ice Sheet System Model  4.18
Code documentation
issm_threads.h
Go to the documentation of this file.
1 
5 #ifndef _ISSM_THREADS_H_
6 #define _ISSM_THREADS_H_
7 
8 /*structure that holds the local data for each thread (in the gate),
9  * + the thread specific information (my id + number of threads) : */
10 typedef struct{
11  void* gate;
12  int id;
13  int num;
15 
16 /*routine that launches "function" in a multi-threaded way if requested,
17  * or just serially if not requested: */
18 void LaunchThread(void* function(void*), void* gate,int num_threads);
19 void PartitionRange(int* pi0,int* pi1, int num_el,int num_threads,int my_thread);
20 
21 #endif //ifndef _ISSM_THREADS_H_
pthread_handle::id
int id
Definition: issm_threads.h:12
LaunchThread
void LaunchThread(void *function(void *), void *gate, int num_threads)
Definition: LaunchThread.cpp:25
pthread_handle::num
int num
Definition: issm_threads.h:13
pthread_handle
Definition: issm_threads.h:10
PartitionRange
void PartitionRange(int *pi0, int *pi1, int num_el, int num_threads, int my_thread)
Definition: PartitionRange.cpp:13
pthread_handle::gate
void * gate
Definition: issm_threads.h:11