diff --git a/Mesh_3/include/CGAL/refine_mesh_3.h b/Mesh_3/include/CGAL/refine_mesh_3.h index 5508f034bf4..115affd366b 100644 --- a/Mesh_3/include/CGAL/refine_mesh_3.h +++ b/Mesh_3/include/CGAL/refine_mesh_3.h @@ -214,7 +214,9 @@ namespace parameters { , nonlinear_growth_of_balls(false) , maximal_number_of_vertices(0) , pointer_to_error_code(0) +#ifndef CGAL_NO_ATOMIC , pointer_to_stop_atomic_boolean(0) +#endif {} std::string dump_after_init_prefix; @@ -227,7 +229,9 @@ namespace parameters { bool nonlinear_growth_of_balls; std::size_t maximal_number_of_vertices; Mesh_error_code* pointer_to_error_code; +#ifndef CGAL_NO_ATOMIC CGAL::cpp11::atomic* pointer_to_stop_atomic_boolean; +#endif }; // end struct Mesh_3_options } // end namespace internal @@ -371,7 +375,9 @@ CGAL_IGNORE_BOOST_PARAMETER_NAME_WARNINGS (number_of_initial_points_, (int), -1) (maximal_number_of_vertices_, (std::size_t), 0) (pointer_to_error_code_, (Mesh_error_code*), ((Mesh_error_code*)0)) +#ifndef CGAL_NO_ATOMIC (pointer_to_stop_atomic_boolean_, (CGAL::cpp11::atomic*), ((CGAL::cpp11::atomic*)0)) +#endif ) ) { @@ -386,7 +392,9 @@ CGAL_IGNORE_BOOST_PARAMETER_NAME_WARNINGS options.number_of_initial_points=number_of_initial_points_; options.maximal_number_of_vertices=maximal_number_of_vertices_; options.pointer_to_error_code=pointer_to_error_code_; +#ifndef CGAL_NO_ATOMIC options.pointer_to_stop_atomic_boolean=pointer_to_stop_atomic_boolean_; +#endif return options; } @@ -542,8 +550,11 @@ void refine_mesh_3_impl(C3T3& c3t3, // Build mesher and launch refinement process Mesher mesher (c3t3, domain, criteria, manifold_options.mesh_topology, mesh_options.maximal_number_of_vertices, - mesh_options.pointer_to_error_code, - mesh_options.pointer_to_stop_atomic_boolean); + mesh_options.pointer_to_error_code +#ifndef CGAL_NO_ATOMIC + , mesh_options.pointer_to_stop_atomic_boolean +#endif + ); double refine_time = mesher.refine_mesh(mesh_options.dump_after_refine_surface_prefix); c3t3.clear_manifold_info();