summaryrefslogtreecommitdiff
path: root/cad/PrusaSlicer/files/patch-src_slic3r_GUI_RemovableDriveManager.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'cad/PrusaSlicer/files/patch-src_slic3r_GUI_RemovableDriveManager.hpp')
-rw-r--r--cad/PrusaSlicer/files/patch-src_slic3r_GUI_RemovableDriveManager.hpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/cad/PrusaSlicer/files/patch-src_slic3r_GUI_RemovableDriveManager.hpp b/cad/PrusaSlicer/files/patch-src_slic3r_GUI_RemovableDriveManager.hpp
new file mode 100644
index 000000000000..a09b359b6dbf
--- /dev/null
+++ b/cad/PrusaSlicer/files/patch-src_slic3r_GUI_RemovableDriveManager.hpp
@@ -0,0 +1,23 @@
+--- 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);