Bug 508390

Summary: Documentation for `Document.lock` does not make sense; references non-existent `barrierLock`
Product: [Applications] krita Reporter: Sabrina Jewson <sejewson>
Component: ScriptingAssignee: Krita Bugs <krita-bugs-null>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 5.2.9   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Sabrina Jewson 2025-08-17 15:59:40 UTC
SUMMARY

The documentation for [`Document.lock`][1] says the following:

> In all other cases, please use barrierLock() instead!

However `barrierLock()` does not exist, although `tryBarrierLock()` does. Despite that, if you look at the source code of the method, it in fact calls `barrierLock()` internally.

[1]: https://api.kde.org/krita/html/classDocument.html