COMPASS  5.0.0
End-to-end AO simulation tool using GPU acceleration
carma_multithread.h File Reference

this fle provides the multithread features to CarmaObj More...

#include <pthread.h>
Include dependency graph for carma_multithread.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  CarmaThreadBarrier
 

Macros

#define CARMAT_THREADPROC   void *
 
#define CARMAT_THREADEND   return 0
 

Typedefs

typedef pthread_t carma_thread
 
typedef void *(* carma_routine) (void *)
 

Functions

carma_thread carma_start_thread (carma_routine func, void *data)
 
void carma_end_thread (carma_thread thread)
 
void carma_destroy_thread (carma_thread thread)
 
void carma_wait4thread (const carma_thread *threads, int num)
 
CarmaThreadBarrier carma_create_barrier (int releaseCount)
 
void carma_increment_barrier (CarmaThreadBarrier *barrier)
 
void carma_wait4barrier (CarmaThreadBarrier *barrier)
 
void carma_destroy_barrier (CarmaThreadBarrier *barrier)
 

Detailed Description

this fle provides the multithread features to CarmaObj

Author
COMPASS Team https://github.com/ANR-COMPASS
Version
5.0.0
Date
2011/01/28

Definition in file carma_multithread.h.

Macro Definition Documentation

◆ CARMAT_THREADEND

#define CARMAT_THREADEND   return 0

Definition at line 54 of file carma_multithread.h.

◆ CARMAT_THREADPROC

#define CARMAT_THREADPROC   void *

Definition at line 53 of file carma_multithread.h.

Typedef Documentation

◆ carma_routine

typedef void*(* carma_routine) (void *)

Definition at line 50 of file carma_multithread.h.

◆ carma_thread

typedef pthread_t carma_thread

Definition at line 49 of file carma_multithread.h.

Function Documentation

◆ carma_create_barrier()

CarmaThreadBarrier carma_create_barrier ( int  releaseCount)

◆ carma_destroy_barrier()

void carma_destroy_barrier ( CarmaThreadBarrier barrier)

◆ carma_destroy_thread()

void carma_destroy_thread ( carma_thread  thread)

◆ carma_end_thread()

void carma_end_thread ( carma_thread  thread)

◆ carma_increment_barrier()

void carma_increment_barrier ( CarmaThreadBarrier barrier)

◆ carma_start_thread()

carma_thread carma_start_thread ( carma_routine  func,
void *  data 
)

◆ carma_wait4barrier()

void carma_wait4barrier ( CarmaThreadBarrier barrier)

◆ carma_wait4thread()

void carma_wait4thread ( const carma_thread threads,
int  num 
)