mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -06:00
Workarounds and documentation of OSX posix incompatibilities
This commit is contained in:
parent
723406dfea
commit
d8f45ff1d8
3 changed files with 9 additions and 2 deletions
|
@ -213,8 +213,11 @@ std::string AppConfig::load()
|
|||
|
||||
void AppConfig::save()
|
||||
{
|
||||
#ifndef __APPLE__
|
||||
// Apple does not implement thread_getname_np() correctly.
|
||||
if (get_current_thread_name() != "slic3r_main")
|
||||
throw CriticalException("Calling AppConfig::save() from a worker thread!");
|
||||
#endif
|
||||
|
||||
// The config is first written to a file with a PID suffix and then moved
|
||||
// to avoid race conditions with multiple instances of Slic3r
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue