ports/cad/PrusaSlicer/files/patch-src_slic3r_GUI_RemovableDriveManager.hpp
Steve Wills 8a4af42707 cad/PrusaSlicer: Update to 2.3.3
- Update to 2.3.3
- Change the dependency from devel/tbb to devel/onetbb

ChangeLog: https://github.com/prusa3d/PrusaSlicer/releases/tag/version_2.3.3

PR:		258483
Submitted by:   Steve Wills <swills@FreeBSD.org>
Reported by:	teodorsigaev@gmail.com (tested), eborisch+FreeBSD@gmail.com (tested)
2021-09-15 12:32:10 +03:00

23 lines
891 B
C++

--- src/slic3r/GUI/RemovableDriveManager.hpp.orig 2021-07-16 10:14:03 UTC
+++ src/slic3r/GUI/RemovableDriveManager.hpp
@@ -5,7 +5,7 @@
#include <string>
#include <boost/thread.hpp>
-#include <tbb/mutex.h>
+#include <mutex>
#include <condition_variable>
// Custom wxWidget events
@@ -111,9 +111,9 @@ class RemovableDriveManager (private)
// m_current_drives is guarded by m_drives_mutex
// sorted ascending by path
std::vector<DriveData> m_current_drives;
- mutable tbb::mutex m_drives_mutex;
+ mutable std::mutex m_drives_mutex;
// Locking the update() function to avoid that the function is executed multiple times.
- mutable tbb::mutex m_inside_update_mutex;
+ mutable std::mutex m_inside_update_mutex;
// Returns drive path (same as path in DriveData) if exists otherwise empty string.
std::string get_removable_drive_from_path(const std::string& path);