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