Solving issue 1961: "Gui freezes when using 'apply-partial'" + fix an include in order to use the TRACE_MYRWMUTEX define
This commit is contained in:
@@ -1099,19 +1099,24 @@ void FileBrowser::applyMenuItemActivated (Glib::ustring ppname) {
|
||||
|
||||
void FileBrowser::applyPartialMenuItemActivated (Glib::ustring ppname) {
|
||||
|
||||
// TODO: Check for Linux
|
||||
{
|
||||
#if PROTECT_VECTORS
|
||||
MYREADERLOCK(l, entryRW);
|
||||
#endif
|
||||
|
||||
if (!tbl || selected.empty())
|
||||
return;
|
||||
}
|
||||
|
||||
const rtengine::procparams::PartialProfile* srcProfiles = profileStore.getProfile (ppname);
|
||||
|
||||
if (srcProfiles->pparams) {
|
||||
if (partialPasteDlg.run()==Gtk::RESPONSE_OK) {
|
||||
|
||||
#if PROTECT_VECTORS
|
||||
MYREADERLOCK(l, entryRW);
|
||||
#endif
|
||||
|
||||
if (bppcl)
|
||||
bppcl->beginBatchPParamsChange(selected.size());
|
||||
for (size_t i=0; i<selected.size(); i++) {
|
||||
|
@@ -23,7 +23,7 @@
|
||||
|
||||
#include <glibmm.h>
|
||||
#include <csignal> // for raise()
|
||||
#include <cstdio>
|
||||
#include <iostream>
|
||||
|
||||
#ifdef WIN32
|
||||
#include <windows.h>
|
||||
@@ -87,7 +87,7 @@ public:
|
||||
#if STRICT_MUTEX || !defined(NDEBUG)
|
||||
if (alreadyLocked) {
|
||||
#ifndef NDEBUG
|
||||
printf("Warning: MyMutex already locked!\n"); // breakpoint
|
||||
std::cout << "Warning: MyMutex already locked!" << std::endl; // breakpoint
|
||||
#endif
|
||||
#if STRICT_MUTEX
|
||||
#ifndef NDEBUG
|
||||
@@ -115,7 +115,7 @@ public:
|
||||
#if STRICT_MUTEX || !defined(NDEBUG)
|
||||
if (alreadyLocked) {
|
||||
#ifndef NDEBUG
|
||||
printf("Warning: MyMutex already locked!\n"); // breakpoint
|
||||
std::cout << "Warning: MyMutex already locked!" << std::endl; // breakpoint
|
||||
#endif
|
||||
#if STRICT_MUTEX
|
||||
#ifndef NDEBUG
|
||||
|
Reference in New Issue
Block a user