WIP: In Lazy.h we now have a single macro for boost and c++11 thread

This commit is contained in:
Andreas Fabri
2015-09-11 14:54:11 +02:00
parent aa649eccc9
commit a14cf913e9
6 changed files with 92 additions and 62 deletions
@@ -64,7 +64,7 @@ private:
CGAL_EXPORT static const double CST_CUT;
#ifdef CGAL_HAS_THREADS
#ifdef BOOST_MSVC
#ifndef CGAL_USE_BOOST_THREAD
CGAL_EXPORT CGAL_THREAD_LOCAL static int prime_int;
CGAL_EXPORT CGAL_THREAD_LOCAL static double prime;
CGAL_EXPORT CGAL_THREAD_LOCAL static double prime_inv;
@@ -207,7 +207,7 @@ public:
set_current_prime(int p){
int old_prime = get_prime_int();
#ifdef CGAL_HAS_THREADS
#ifdef BOOST_MSVC
#ifndef CGAL_USE_BOOST_THREAD
prime_int = p;
prime = double(p);
prime_inv = 1.0 / prime;