Skip to content

Commit

Permalink
Darkroom: remove useless thread locks
Browse files Browse the repository at this point in the history
  • Loading branch information
aurelienpierre committed Jan 17, 2025
1 parent a05404a commit 2810020
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/views/darkroom.c
Original file line number Diff line number Diff line change
Expand Up @@ -830,13 +830,6 @@ static void _darkroom_ui_apply_style_activate_callback(gchar *name)

darktable.develop->exit = 1;

// Wait for pipelines to return
dt_pthread_mutex_lock(&darktable.develop->preview_pipe->busy_mutex);
dt_pthread_mutex_unlock(&darktable.develop->preview_pipe->busy_mutex);

dt_pthread_mutex_lock(&darktable.develop->pipe->busy_mutex);
dt_pthread_mutex_unlock(&darktable.develop->pipe->busy_mutex);

/* write current history changes so nothing gets lost */
dt_dev_write_history(darktable.develop);

Expand Down Expand Up @@ -2362,13 +2355,6 @@ void leave(dt_view_t *self)
dt_atomic_set_int(&dev->preview_pipe->shutdown, TRUE);
dev->exit = 1;

// Wait for pipelines to return
dt_pthread_mutex_lock(&dev->preview_pipe->busy_mutex);
dt_pthread_mutex_unlock(&dev->preview_pipe->busy_mutex);

dt_pthread_mutex_lock(&dev->pipe->busy_mutex);
dt_pthread_mutex_unlock(&dev->pipe->busy_mutex);

dt_iop_color_picker_cleanup();
if(darktable.lib->proxy.colorpicker.picker_proxy)
dt_iop_color_picker_reset(darktable.lib->proxy.colorpicker.picker_proxy->module, FALSE);
Expand Down

0 comments on commit 2810020

Please sign in to comment.