mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 00:37:51 -06:00
Fixing stack overflow issues when slicing in SLA mode:
The BackgroundSlicingProcess thread will now have the same stack size allocated as the TBB worker threads: 4MB on 64bit systems and 2MB on 32bit systems.
This commit is contained in:
parent
8503bb5213
commit
eb458163e3
2 changed files with 7 additions and 3 deletions
|
@ -4,9 +4,9 @@
|
|||
#include <string>
|
||||
#include <condition_variable>
|
||||
#include <mutex>
|
||||
#include <thread>
|
||||
|
||||
#include <boost/filesystem.hpp>
|
||||
#include <boost/thread.hpp>
|
||||
|
||||
#include <wx/event.h>
|
||||
|
||||
|
@ -161,7 +161,7 @@ private:
|
|||
PrintHostJob m_upload_job;
|
||||
// Thread, on which the background processing is executed. The thread will always be present
|
||||
// and ready to execute the slicing process.
|
||||
std::thread m_thread;
|
||||
boost::thread m_thread;
|
||||
// Mutex and condition variable to synchronize m_thread with the UI thread.
|
||||
std::mutex m_mutex;
|
||||
std::condition_variable m_condition;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue