mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-11-01 05:01:10 -06:00
Quite some time ago, many of the TBB components were deprecated in favor of their near-equivalents in the STL or, in the case of task_scheduler_init, were broken up and reconstituted under a less ad-hoc logic. Every time a header file marked deprecated gets included, a rather loud warning is emitted, which leads to a complete TBB's domination over the stderr stream during build time, making it harder to notice _legitimate_ warnings. Instead of merely muting the output with TBB_SUPPRESS_DEPRECATED_MESSAGES, perform a genuine migration away from the deprecated components with the added benefit of achieving a source compatibility with oneTBB, the successor to TBB which has dropped the deprecated API for good. What got replaced for what? | Deprecated | Replacement | | ------------------------------------- | --------------------------------------------- | | `tbb::atomic` | `std::atomic` | | `tbb::mutex` | `std::mutex` | | `tbb::mutex::scoped_lock` | `std::scoped_lock<std::mutex>` | | `tbb::mutex::scoped_lock` (empty) | `std::unique_lock<std::mutex>` (deferred) | | `tbb::task_scheduler_init` | `tbb::global_control` | | `tbb::this_thread` | `std::this_thread` | Signed-off-by: Roman Beranek <roman.beranek@prusa3d.com> |
||
|---|---|---|
| .. | ||
| AGGRaster.hpp | ||
| bicubic.h | ||
| BoostAdapter.hpp | ||
| Clustering.cpp | ||
| Clustering.hpp | ||
| ConcaveHull.cpp | ||
| ConcaveHull.hpp | ||
| Concurrency.hpp | ||
| Hollowing.cpp | ||
| Hollowing.hpp | ||
| IndexedMesh.cpp | ||
| IndexedMesh.hpp | ||
| JobController.hpp | ||
| Pad.cpp | ||
| Pad.hpp | ||
| RasterBase.cpp | ||
| RasterBase.hpp | ||
| RasterToPolygons.cpp | ||
| RasterToPolygons.hpp | ||
| ReprojectPointsOnMesh.hpp | ||
| Rotfinder.cpp | ||
| Rotfinder.hpp | ||
| SpatIndex.cpp | ||
| SpatIndex.hpp | ||
| SupportPoint.hpp | ||
| SupportPointGenerator.cpp | ||
| SupportPointGenerator.hpp | ||
| SupportTree.cpp | ||
| SupportTree.hpp | ||
| SupportTreeBuilder.cpp | ||
| SupportTreeBuilder.hpp | ||
| SupportTreeBuildsteps.cpp | ||
| SupportTreeBuildsteps.hpp | ||
| SupportTreeMesher.cpp | ||
| SupportTreeMesher.hpp | ||