Deprecate CGAL headers for threads, atomic and result_of, and move their content to config.h as fallback

This commit is contained in:
Maxime Gimeno 2021-05-04 11:45:57 +02:00
parent 56e09b7a7b
commit e9b7595fff
23 changed files with 19 additions and 22 deletions

View File

@ -19,7 +19,6 @@
#include <CGAL/Apollonius_graph_2/basic.h>
#include <CGAL/atomic.h>
namespace CGAL {

View File

@ -19,7 +19,6 @@
#include <CGAL/Apollonius_graph_2/basic.h>
#include <CGAL/atomic.h>
#define AG2_PROFILE_PREDICATES

View File

@ -23,7 +23,6 @@
* The header file for the Arr_circle_segment_traits_2<Kenrel> class.
*/
#include <CGAL/atomic.h>
#include <CGAL/tags.h>
#include <CGAL/Arr_tags.h>
#include <CGAL/Arr_geometry_traits/Circle_segment_2.h>

View File

@ -24,7 +24,6 @@
#include <fstream>
#include <CGAL/atomic.h>
#include <CGAL/tags.h>
#include <CGAL/Arr_tags.h>
#include <CGAL/Arr_geometry_traits/Conic_arc_2.h>

View File

@ -28,7 +28,6 @@
#include <string.h>
#include <CGAL/basic.h>
#include <CGAL/atomic.h>
#include <CGAL/Arr_enums.h>
#include <CGAL/Arr_tags.h>

View File

@ -21,7 +21,6 @@
#include <CGAL/Bbox_2.h>
#include <CGAL/Bbox_3.h>
#include <CGAL/Box_intersection_d/box_limits.h>
#include <CGAL/atomic.h>
#include <algorithm>
#include <array>

View File

@ -29,7 +29,6 @@
#define _CORE_COREDEFS_H_
#include <CGAL/CORE/extLong.h>
#include <CGAL/atomic.h>
#include <CGAL/disable_warnings.h>
#ifdef CGAL_HEADER_ONLY

View File

@ -10,6 +10,9 @@
#ifndef CGAL_ATOMIC_H
#define CGAL_ATOMIC_H
#define CGAL_DEPRECATED_HEADER "<CGAL/atomic.h>"
#define CGAL_REPLACEMENT_HEADER "<CGAL/config.h>"
#include <CGAL/config.h>
#ifdef CGAL_HAS_THREADS

View File

@ -645,6 +645,9 @@ using std::max;
# include <unordered_set>
# include <unordered_map>
# include <functional>
# include <thread>
# include <chrono>
# include <atomic>
//
namespace CGAL {
//
@ -663,6 +666,16 @@ namespace CGAL {
using std::is_enum;
using std::unordered_set;
using std::unordered_map;
using std::atomic;
using std::memory_order_relaxed;
using std::memory_order_consume;
using std::memory_order_acquire;
using std::memory_order_release;
using std::memory_order_acq_rel;
using std::memory_order_seq_cst;
using std::atomic_thread_fence;
using std::thread;
}
//
namespace cpp0x = cpp11;

View File

@ -36,7 +36,6 @@
#include <CGAL/Mesher_level_visitors.h>
#include <CGAL/Kernel_traits.h>
#include <CGAL/point_generators_3.h>
#include <CGAL/atomic.h>
#ifdef CGAL_MESH_3_USE_OLD_SURFACE_RESTRICTED_DELAUNAY_UPDATE
#include <CGAL/Surface_mesher/Surface_mesher_visitor.h>

View File

@ -23,7 +23,6 @@
#include <CGAL/Mesh_3/Profiling_tools.h>
#endif
#include <CGAL/atomic.h>
#include <CGAL/Mesh_3/Worksharing_data_structures.h>
#ifdef CGAL_CONCURRENT_MESH_3_PROFILING

View File

@ -46,7 +46,6 @@
#include <CGAL/iterator.h>
#include <CGAL/number_utils.h>
#include <CGAL/Delaunay_triangulation_3.h>
#include <CGAL/atomic.h>
#include <CGAL/boost/iterator/transform_iterator.hpp>

View File

@ -26,7 +26,6 @@
#include <tbb/blocked_range.h>
#include <tbb/parallel_for.h>
#endif
#include <CGAL/atomic.h>
#include <CGAL/Meshes/Filtered_deque_container.h>
#include <CGAL/Meshes/Filtered_multimap_container.h>

View File

@ -41,7 +41,6 @@
#include <CGAL/Mesh_3/Dump_c3t3.h>
#include <CGAL/Object.h>
#include <CGAL/atomic.h>
#include <boost/format.hpp>
#include <boost/optional.hpp>

View File

@ -19,7 +19,6 @@
#include <CGAL/Mesh_facet_topology.h>
#include <CGAL/atomic.h>
#include <CGAL/utility.h>
#include <CGAL/Time_stamper.h>

View File

@ -28,7 +28,6 @@
#include <CGAL/Mesh_3/Mesher_3.h>
#include <CGAL/Mesh_error_code.h>
#include <CGAL/optimize_mesh_3.h>
#include <CGAL/atomic.h>
#include <boost/parameter/preprocessor.hpp>

View File

@ -15,9 +15,6 @@
#include <CGAL/license/Nef_3.h>
#include <CGAL/atomic.h>
#include <CGAL/Nef_3/Vertex.h>
#include <CGAL/Nef_3/Halfedge.h>
#include <CGAL/Nef_3/Halffacet.h>

View File

@ -19,7 +19,6 @@
#define CGAL_COUNTED_NUMBER_H
#include <CGAL/number_type_basic.h>
#include <CGAL/atomic.h>
#include <CGAL/boost/iterator/transform_iterator.hpp> // for Root_of_selector
#include <iostream>

View File

@ -16,7 +16,6 @@
#include <functional>
#include <CGAL/thread.h>
namespace CGAL {
namespace Point_set_processing_3 {

View File

@ -3,7 +3,6 @@
#include <QProgressDialog>
#include <CGAL/Real_timer.h>
#include <CGAL/thread.h>
#include "Callback_signaler.h"

View File

@ -31,7 +31,6 @@
#include <CGAL/iterator.h>
#include <CGAL/CC_safe_handle.h>
#include <CGAL/Time_stamper.h>
#include <CGAL/atomic.h>
#include <tbb/enumerable_thread_specific.h>
#include <tbb/queuing_mutex.h>

View File

@ -13,7 +13,6 @@
#define CGAL_TIME_STAMPER_H
#include <CGAL/Has_timestamp.h>
#include <CGAL/atomic.h>
namespace CGAL {

View File

@ -12,6 +12,9 @@
#ifndef CGAL_THREAD_H
#define CGAL_THREAD_H
#define CGAL_DEPRECATED_HEADER "<CGAL/thread.h>"
#define CGAL_REPLACEMENT_HEADER "<CGAL/config.h>"
#include <CGAL/config.h>
/*