Skip to content

Make gui->reset an atomic operation.#21026

Merged
TurboGit merged 1 commit into
masterfrom
po/gui-reset
May 14, 2026
Merged

Make gui->reset an atomic operation.#21026
TurboGit merged 1 commit into
masterfrom
po/gui-reset

Conversation

@TurboGit
Copy link
Copy Markdown
Member

Also ensure that a check for atomic value and increment is atomic. That is, the following control is not good as could be interrupted between the check and the setting:

if(darktable.gui->reset) return;

++darktable.gui->reset;

Upadte the developer documentation.

@TurboGit TurboGit added this to the 5.6 milestone May 14, 2026
@TurboGit TurboGit added bugfix pull request fixing a bug priority: high core features are broken and not usable at all, software crashes release notes: pending labels May 14, 2026
@TurboGit TurboGit force-pushed the po/gui-reset branch 2 times, most recently from 447ac45 to 1603ca8 Compare May 14, 2026 13:05
@jenshannoschwalm
Copy link
Copy Markdown
Collaborator

Heavy stuff :-)

Also ensure that a check for atomic value and increment is atomic.
That is, the following control is not good as could be interrupted
between the check and the setting:

  if(darktable.gui->reset) return;

  ++darktable.gui->reset;

Upadte the developer documentation.
@ralfbrown
Copy link
Copy Markdown
Collaborator

Quite a bit of work there. I've only spot-checked the code, but looks good.

@TurboGit
Copy link
Copy Markdown
Member Author

Merging now, thanks for the review!

@TurboGit TurboGit merged commit cf5e698 into master May 14, 2026
6 checks passed
@TurboGit TurboGit deleted the po/gui-reset branch May 14, 2026 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix pull request fixing a bug priority: high core features are broken and not usable at all, software crashes release notes: pending

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants