TTMath  0.9.4
 C++ bignum library
Data Structures | Namespaces | Macros | Variables
ttmaththreads.h File Reference

Some objects used in multithreads environment. More...

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

Go to the source code of this file.

Data Structures

class  ttmath::ThreadLock
 objects of this class are used to synchronize More...
 

Namespaces

 ttmath
 a namespace for the TTMath library
 

Macros

#define TTMATH_MULTITHREADS_HELPER
 

Variables

pthread_mutex_t ttmath::ttmath_mutex
 

Detailed Description

Some objects used in multithreads environment.

Definition in file ttmaththreads.h.

Macro Definition Documentation

§ TTMATH_MULTITHREADS_HELPER

#define TTMATH_MULTITHREADS_HELPER
Value:
namespace ttmath \
{ \
pthread_mutex_t ttmath_mutex = PTHREAD_MUTEX_INITIALIZER; \
}
pthread_mutex_t ttmath_mutex
a namespace for the TTMath library
Definition: ttmath.h:62

in multithreads environment you should use TTMATH_MULTITHREADS_HELPER macro somewhere in *.cpp file (this macro defines a pthread_mutex_t object used by TTMath library)

Definition at line 157 of file ttmaththreads.h.