mirror of https://github.com/CGAL/cgal
Merge pull request #3085 from afabri/Arrrangement_2-static_or_atomic-GF
Arrangement_2: Address all remaining points of issue #1384, but the renderer
This commit is contained in:
commit
fe262d6215
|
|
@ -31,6 +31,7 @@
|
||||||
* The header file for the Arr_circle_segment_traits_2<Kenrel> class.
|
* The header file for the Arr_circle_segment_traits_2<Kenrel> class.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <CGAL/atomic.h>
|
||||||
#include <CGAL/tags.h>
|
#include <CGAL/tags.h>
|
||||||
#include <CGAL/Arr_tags.h>
|
#include <CGAL/Arr_tags.h>
|
||||||
#include <CGAL/Arr_geometry_traits/Circle_segment_2.h>
|
#include <CGAL/Arr_geometry_traits/Circle_segment_2.h>
|
||||||
|
|
@ -84,7 +85,11 @@ public:
|
||||||
/*! Get the next curve index. */
|
/*! Get the next curve index. */
|
||||||
static unsigned int get_index ()
|
static unsigned int get_index ()
|
||||||
{
|
{
|
||||||
static unsigned int index = 0;
|
#ifdef CGAL_NO_ATOMIC
|
||||||
|
static unsigned int index;
|
||||||
|
#else
|
||||||
|
static CGAL::cpp11::atomic<unsigned int> index;
|
||||||
|
#endif
|
||||||
return (++index);
|
return (++index);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,7 @@
|
||||||
* The conic traits-class for the arrangement package.
|
* The conic traits-class for the arrangement package.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <CGAL/atomic.h>
|
||||||
#include <CGAL/tags.h>
|
#include <CGAL/tags.h>
|
||||||
#include <CGAL/Arr_tags.h>
|
#include <CGAL/Arr_tags.h>
|
||||||
#include <CGAL/Arr_geometry_traits/Conic_arc_2.h>
|
#include <CGAL/Arr_geometry_traits/Conic_arc_2.h>
|
||||||
|
|
@ -114,7 +115,11 @@ public:
|
||||||
/*! Get the next conic index. */
|
/*! Get the next conic index. */
|
||||||
static unsigned int get_index ()
|
static unsigned int get_index ()
|
||||||
{
|
{
|
||||||
static unsigned int index = 0;
|
#ifdef CGAL_NO_ATOMIC
|
||||||
|
static unsigned int index;
|
||||||
|
#else
|
||||||
|
static CGAL::cpp11::atomic<unsigned int> index;
|
||||||
|
#endif
|
||||||
return (++index);
|
return (++index);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue