mod_fem_viewer/utils/fv_threads.h File Reference

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

Go to the source code of this file.

Defines

#define fv_thread_return   void*
#define INITCRITICALSECTION(crit_section)   pthread_mutex_init(&(crit_section),NULL);
#define DELETECRITICALSECTION(crit_section)   pthread_mutex_destroy(&(crit_section));
#define ENTERCRITICALSECTION(crit_section)   pthread_mutex_lock (&(crit_section));
#define LEAVECRITICALSECTION(crit_section)   pthread_mutex_unlock(&(crit_section));
#define INITSIGNAL(signal_var)   pthread_cond_init(&(signal_var), NULL);
#define DELETESIGNAL(signal_var)   pthread_cond_destroy(&(signal_var));

Typedefs

typedef pthread_t fv_thread
typedef pthread_t fv_thread_id
typedef void *(* fv_thread_routine )(void *)
typedef pthread_mutex_t fv_critical_section
typedef pthread_cond_t fv_signal_t

Functions

fv_thread fv_start_thread (fv_thread_id *thread_id, fv_thread_routine func, void *data)
void fv_end_thread (fv_thread thread)
void fv_destroy_thread (fv_thread thread)
void fv_wait_for_threads (const fv_thread *threads, int num)
int fv_wait_for_wakeup (fv_signal_t *signal, fv_critical_section *critical)
int fv_wakeup (fv_signal_t *signal)

Variables

int utd_internal_error

Define Documentation

#define DELETECRITICALSECTION ( crit_section   )     pthread_mutex_destroy(&(crit_section));
#define DELETESIGNAL ( signal_var   )     pthread_cond_destroy(&(signal_var));
#define ENTERCRITICALSECTION ( crit_section   )     pthread_mutex_lock (&(crit_section));
#define fv_thread_return   void*
#define INITCRITICALSECTION ( crit_section   )     pthread_mutex_init(&(crit_section),NULL);
#define INITSIGNAL ( signal_var   )     pthread_cond_init(&(signal_var), NULL);
#define LEAVECRITICALSECTION ( crit_section   )     pthread_mutex_unlock(&(crit_section));

Typedef Documentation

typedef pthread_mutex_t fv_critical_section
typedef pthread_cond_t fv_signal_t
typedef pthread_t fv_thread
typedef pthread_t fv_thread_id
typedef void*(* fv_thread_routine)(void *)

Function Documentation

void fv_destroy_thread ( fv_thread  thread  ) 
void fv_end_thread ( fv_thread  thread  ) 

Here is the caller graph for this function:

fv_thread fv_start_thread ( fv_thread_id thread_id,
fv_thread_routine  func,
void data 
)
void fv_wait_for_threads ( const fv_thread threads,
int  num 
)

Here is the call graph for this function:

int fv_wait_for_wakeup ( fv_signal_t signal,
fv_critical_section critical 
)
int fv_wakeup ( fv_signal_t signal  ) 

Here is the caller graph for this function:


Variable Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 3 Jun 2020 for ModFEM by  doxygen 1.6.1