![]() |
TTMath
0.9.4
C++ bignum library
|
objects of this class are used to synchronize More...
#include <ttmaththreads.h>
Public Member Functions | |
bool | Lock () |
objects of this class are used to synchronize
this is a simple skeleton of a program in multithreads environment:
#define TTMATH_MULTITHREADS #include<ttmath/ttmath.h> TTMATH_MULTITHREADS_HELPER int main() { [...] }
make sure that macro TTMATH_MULTITHREADS is defined and (somewhere in *.cpp file) use TTMATH_MULTITHREADS_HELPER macro (outside of any classes/functions/namespaces scope)
Definition at line 188 of file ttmaththreads.h.
bool ttmath::ThreadLock::Lock | ( | ) |
lock the current thread
it uses a global mutex created by TTMATH_MULTITHREADS_HELPER macro
Definition at line 197 of file ttmaththreads.h.