|
KiCad PCB EDA Suite
|
KIGIT_COMMON's action lock, the session's mutex and then the working tree's REPO_ACTION_LOCK, so another process waits for the action too. More...
#include <kigit_action_lock.h>
Public Member Functions | |
| ACTION_LOCK ()=default | |
| ACTION_LOCK (std::unique_lock< std::mutex > &&aMutex) | |
| The mutex alone, which no other process sees. | |
| ACTION_LOCK (std::unique_lock< std::mutex > &&aMutex, std::unique_ptr< REPO_ACTION_LOCK > aRepo) | |
| ACTION_LOCK (ACTION_LOCK &&) noexcept=default | |
| ACTION_LOCK & | operator= (ACTION_LOCK &&aOther) noexcept |
| ~ACTION_LOCK () | |
| bool | owns_lock () const |
| operator bool () const | |
| void | unlock () |
Private Attributes | |
| std::unique_lock< std::mutex > | m_mutex |
| std::unique_ptr< REPO_ACTION_LOCK > | m_repo |
| Null when nothing outside this process can share the tree. | |
KIGIT_COMMON's action lock, the session's mutex and then the working tree's REPO_ACTION_LOCK, so another process waits for the action too.
It owns the lock only while it holds both.
Definition at line 35 of file kigit_action_lock.h.
|
default |
Referenced by ACTION_LOCK(), and operator=().
|
inlineexplicit |
The mutex alone, which no other process sees.
Definition at line 41 of file kigit_action_lock.h.
|
inline |
Definition at line 46 of file kigit_action_lock.h.
|
defaultnoexcept |
References ACTION_LOCK().
|
inline |
Definition at line 66 of file kigit_action_lock.h.
References unlock().
|
inlineexplicit |
Definition at line 70 of file kigit_action_lock.h.
References owns_lock().
|
inlinenoexcept |
Definition at line 54 of file kigit_action_lock.h.
References ACTION_LOCK(), m_mutex, m_repo, and unlock().
|
inline |
Definition at line 68 of file kigit_action_lock.h.
References m_mutex, and m_repo.
Referenced by PROJECT_TREE_PANE::buildIgnoreSubmenu(), ChangeGitIgnore(), LIBGIT_BACKEND::Clone(), GIT_COMMIT_PANE::confirmDiscardFile(), KIGIT::EditGitIdentity(), fetchRemote(), GIT_COMMIT_PANE::finishAbandonOperation(), GIT_COMMIT_PANE::finishCommit(), GIT_COMMIT_PANE::finishPullConflictPreparation(), GIT_COMMIT_PANE::onChecklistContextMenu(), PROJECT_TREE_PANE::onGitRemoteSettings(), GIT_COMMIT_PANE::onUndoCommit(), DIALOG_GIT_MR_REVIEW::openFileDiff(), operator bool(), LIBGIT_BACKEND::PerformPull(), DIALOG_GIT_MR_REVIEW::populateFileList(), LIBGIT_BACKEND::Push(), resolveMissingRemote(), PANEL_GIT_HISTORY::restoreVersion(), KIGIT::PROJECT_GIT_UTILS::SafeFreeRepository(), PROJECT_TREE_PANE::showContextMenu(), PROJECT_TREE_PANE::showGitRemoteSettings(), PROJECT_TREE_PANE::switchGitBranch(), SwitchProjectToBranch(), KIGIT::TryLockAction(), KIGIT_COMMON::TryLockActionFor(), PROJECT_TREE_PANE::updateGitStatusIconMap(), KIGIT::WaitForActionLock(), and PROJECT_TREE_PANE::WaitForGitOperations().
|
inline |
Definition at line 72 of file kigit_action_lock.h.
References m_mutex, and m_repo.
Referenced by BOOST_AUTO_TEST_CASE(), GIT_COMMIT_PANE::confirmDiscardFile(), GIT_COMMIT_PANE::finishCommit(), DIALOG_GIT_MR_REVIEW::openFileDiff(), operator=(), DIALOG_GIT_MR_REVIEW::populateFileList(), and ~ACTION_LOCK().
|
private |
Definition at line 81 of file kigit_action_lock.h.
Referenced by ACTION_LOCK(), ACTION_LOCK(), operator=(), owns_lock(), and unlock().
|
private |
Null when nothing outside this process can share the tree.
Definition at line 82 of file kigit_action_lock.h.
Referenced by ACTION_LOCK(), operator=(), owns_lock(), and unlock().