mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-15 18:58:00 -06:00
Support for naming slicer own threads for debugging.
The following threads are named with this commit: slic3r_main, slic3r_BackgroundSlicingProcess, slic3r_tbbpool_xx_yy where xx is a one based index of the TTB thread and yy is the platform thread ID.
This commit is contained in:
parent
8d59abfdf8
commit
6531061d09
12 changed files with 219 additions and 38 deletions
|
@ -4,6 +4,7 @@
|
|||
#include "ClipperUtils.hpp"
|
||||
#include "Geometry.hpp"
|
||||
#include "MTUtils.hpp"
|
||||
#include "Thread.hpp"
|
||||
|
||||
#include <unordered_set>
|
||||
#include <numeric>
|
||||
|
@ -689,7 +690,10 @@ bool SLAPrint::invalidate_step(SLAPrintStep step)
|
|||
|
||||
void SLAPrint::process()
|
||||
{
|
||||
if(m_objects.empty()) return;
|
||||
if (m_objects.empty())
|
||||
return;
|
||||
|
||||
name_tbb_thread_pool_threads();
|
||||
|
||||
// Assumption: at this point the print objects should be populated only with
|
||||
// the model objects we have to process and the instances are also filtered
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue