forked from edgardoh/darktable
-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pipe threads locks: remove redundant locks, change the logic
- Remove dev->pipe_mutex (shared between pipes) that was redundant wich a much older pipe->busy_mutex lock. - Remove pipe->busy_mutex locks from internal functions and protect top-most functions, aka pipeline jobs. So, from there we have 3 locks: - dt_mimap_cache_lock/release, which captures an app-global lock to protect access to image buffer (input), from disk or memory cache - dev->history_mutex, which captures a dev-centric lock to protect history manipulations from/to the development stack - pipe->busy_mutex, which captures a pipe-centric lock to protect the pipeline nodes topology. Remains to implement an app-wise DB lock to ensure only one part of the soft can access DB histories at the same time. Partial fix for #262
- Loading branch information
1 parent
ead9e9d
commit 17ffeed
Showing
6 changed files
with
25 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters