|
PACS System 0.1.0
PACS DICOM system library
|
Detailed information about a lock on a study. More...
#include <study_lock_manager.h>

Public Member Functions | |
| auto | duration () const -> std::chrono::milliseconds |
| Get lock duration. | |
| auto | is_expired () const -> bool |
| Check if the lock has expired. | |
Public Attributes | |
| std::string | study_uid |
| Study UID that is locked. | |
| lock_type | type {lock_type::exclusive} |
| Type of lock held. | |
| std::string | reason |
| Reason for the lock. | |
| std::string | holder |
| Who holds the lock (user/service identifier) | |
| std::string | token_id |
| Lock token ID. | |
| std::chrono::system_clock::time_point | acquired_at |
| When the lock was acquired. | |
| std::optional< std::chrono::system_clock::time_point > | expires_at |
| When the lock expires (if timeout set) | |
| std::size_t | shared_count {0} |
| Number of shared lock holders (for shared locks) | |
Detailed information about a lock on a study.
Definition at line 132 of file study_lock_manager.h.
|
inlinenodiscard |
Get lock duration.
Definition at line 160 of file study_lock_manager.h.
References acquired_at.
|
inlinenodiscard |
Check if the lock has expired.
Definition at line 168 of file study_lock_manager.h.
References expires_at.
| std::chrono::system_clock::time_point kcenon::pacs::workflow::lock_info::acquired_at |
When the lock was acquired.
Definition at line 149 of file study_lock_manager.h.
Referenced by duration(), and kcenon::pacs::workflow::study_lock_manager::lock().
| std::optional<std::chrono::system_clock::time_point> kcenon::pacs::workflow::lock_info::expires_at |
When the lock expires (if timeout set)
Definition at line 152 of file study_lock_manager.h.
Referenced by is_expired(), and kcenon::pacs::workflow::study_lock_manager::lock().
| std::string kcenon::pacs::workflow::lock_info::holder |
Who holds the lock (user/service identifier)
Definition at line 143 of file study_lock_manager.h.
Referenced by kcenon::pacs::workflow::study_lock_manager::lock().
| std::string kcenon::pacs::workflow::lock_info::reason |
Reason for the lock.
Definition at line 140 of file study_lock_manager.h.
Referenced by kcenon::pacs::workflow::study_lock_manager::lock().
| std::size_t kcenon::pacs::workflow::lock_info::shared_count {0} |
Number of shared lock holders (for shared locks)
Definition at line 155 of file study_lock_manager.h.
Referenced by kcenon::pacs::workflow::study_lock_manager::lock().
| std::string kcenon::pacs::workflow::lock_info::study_uid |
Study UID that is locked.
Definition at line 134 of file study_lock_manager.h.
Referenced by kcenon::pacs::workflow::study_lock_manager::lock().
| std::string kcenon::pacs::workflow::lock_info::token_id |
Lock token ID.
Definition at line 146 of file study_lock_manager.h.
Referenced by kcenon::pacs::workflow::study_lock_manager::lock().
| lock_type kcenon::pacs::workflow::lock_info::type {lock_type::exclusive} |
Type of lock held.
Definition at line 137 of file study_lock_manager.h.
Referenced by kcenon::pacs::workflow::study_lock_manager::lock().