Partially solving issue 1788: "Crashing during processing of queue"
It also correct a bug of wrong image orientation (was wrong in the File Browser while good in the Editor tab) This patch also introduce several speed optimizations like: - switch between File Browser and Editor tab in Single Editor mode - asynchronous computation of the Batch Queue's thumbnails - quick start of RT even with a huge queue - less GUI overhead when applying a profile to multiple thumbs in the File Browser
This commit is contained in:
@@ -72,7 +72,9 @@ option (BUILD_SHARED "Build rawtherapee with shared libraries" OFF)
|
||||
option (WITH_BZIP "Build with Bzip2 support" ON)
|
||||
option (WITH_MYFILE_MMAP "Build using memory mapped file" ON)
|
||||
option (OPTION_OMP "Build with OpenMP support" ON)
|
||||
option (BUILD_BUNDLE "Self-contained build" OFF)
|
||||
option (PROTECT_VECTORS "Protect critical vectors by custom R/W Mutex, recommanded even if your std::vector is thread safe" ON)
|
||||
option (TRACE_MYRWMUTEX "Trace RT's custom R/W Mutex (Debug builds only); redirecting std::out to a file is strongly recommended!" OFF)
|
||||
option (AUTO_GDK_FLUSH "Use gdk_flush on all gdk_thread_leave other than the GUI thread; set it ON if you experience X Server warning/errors" OFF)
|
||||
|
||||
# set install directories
|
||||
if (WIN32 OR APPLE)
|
||||
@@ -160,6 +162,25 @@ if (NOT BUILD_BUNDLE AND
|
||||
message (FATAL_ERROR "The paths has to be absolute or use -DBUILD_BUNDLE=ON")
|
||||
endif ()
|
||||
|
||||
# MyRWMutex
|
||||
if (PROTECT_VECTORS)
|
||||
add_definitions (-DPROTECT_VECTORS=1)
|
||||
else (PROTECT_VECTORS)
|
||||
add_definitions (-DPROTECT_VECTORS=0)
|
||||
endif (PROTECT_VECTORS)
|
||||
if (TRACE_MYRWMUTEX)
|
||||
# Note: it will be set to 0 for Debug builds (rtgui/guiutils.h)
|
||||
add_definitions (-DTRACE_MYRWMUTEX=1)
|
||||
else (TRACE_MYRWMUTEX)
|
||||
add_definitions (-DTRACE_MYRWMUTEX=0)
|
||||
endif (TRACE_MYRWMUTEX)
|
||||
|
||||
if (AUTO_GDK_FLUSH)
|
||||
add_definitions (-DAUTO_GDK_FLUSH=1)
|
||||
else (AUTO_GDK_FLUSH)
|
||||
add_definitions (-DAUTO_GDK_FLUSH=0)
|
||||
endif (AUTO_GDK_FLUSH)
|
||||
|
||||
# check for libraries
|
||||
find_package(PkgConfig)
|
||||
pkg_check_modules (GTK REQUIRED gtk+-2.0>=2.12)
|
||||
|
Reference in New Issue
Block a user