Skip to content

Commit

Permalink
Fixing deadlock in AnalogEQPlot destructor (#43)
Browse files Browse the repository at this point in the history
* Fixing deadlock in AnalogEQPlot destructor

* Apply clang-format

* Fixing include dir

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
jatinchowdhury18 and github-actions[bot] authored Jun 17, 2024
1 parent 3d81f13 commit 2d77bdc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
3 changes: 1 addition & 2 deletions modules/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
add_subdirectory(JUCE)
add_subdirectory(chowdsp_utils)
add_subdirectory(chowdsp_wdf)
add_subdirectory(eigen)
add_subdirectory(LBFGSpp)

subproject_version(JUCE juce_version)
Expand All @@ -28,7 +27,6 @@ target_link_libraries(juce_plugin_modules
chowdsp::chowdsp_wdf
chowdsp::chowdsp_gui
chowdsp::chowdsp_visualizers
Eigen3::Eigen
lbfgspp
PUBLIC
juce::juce_recommended_config_flags
Expand Down Expand Up @@ -73,6 +71,7 @@ target_compile_definitions(juce_plugin_modules
target_include_directories(juce_plugin_modules
PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}/exprtk
${CMAKE_CURRENT_SOURCE_DIR}/eigen
INTERFACE
$<TARGET_PROPERTY:juce_plugin_modules,INCLUDE_DIRECTORIES>
)
Expand Down
2 changes: 1 addition & 1 deletion modules/LBFGSpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ target_include_directories(lbfgspp INTERFACE
# | FIND EXTERNAL LIBRARIES |
# + ----------------------- +

target_link_libraries(lbfgspp INTERFACE Eigen3::Eigen)
#target_link_libraries(lbfgspp INTERFACE Eigen3::Eigen)

# + ------------ +
# | INSTALLATION |
Expand Down
8 changes: 6 additions & 2 deletions src/gui/AnalogEQ/AnalogEQPlot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,12 @@ int AnalogEQPlot::BackgroundPlotter::useTimeSlice()
{
filterPlotter.updateFilterPlot();

juce::MessageManagerLock mml {};
parent.repaint();
juce::MessageManager::callAsync (
[safeParent = juce::Component::SafePointer { &parent }]
{
if (safeParent != nullptr)
safeParent->repaint();
});
}

return 30;
Expand Down

0 comments on commit 2d77bdc

Please sign in to comment.