#include <variable.h>
|
| | VariableTaken (const Variable &var, bool edit_mode, const std::chrono::milliseconds &timeout_duration=Sync::SyncTimeoutDeedlock, const std::string_view message="", const std::source_location &location=std::source_location::current()) |
| |
|
| static std::string | MakeTimeoutMessage (const Variable &var, bool edit_mode, const std::chrono::milliseconds &timeout_duration, const std::string_view message, const std::source_location &location) |
| |
Класс VariableTaken используется для захвата объекта синхронизации Sync при работе с классом Variable
Definition at line 220 of file variable.h.
◆ VariableTaken()
| VariableTaken::VariableTaken |
( |
const Variable & | var, |
|
|
bool | edit_mode, |
|
|
const std::chrono::milliseconds & | timeout_duration = Sync::SyncTimeoutDeedlock, |
|
|
const std::string_view | message = "", |
|
|
const std::source_location & | location = std::source_location::current() ) |
|
explicitprotected |
Конструктор захвата объекта синхронизации Sync при работе с классом Variable
- Parameters
-
| var | Ссылка на объект Variable . |
| edit_mode | Режим редактирования (по умолчанию только для чтения). |
| timeout_duration | Время ожидания захвата блокировки до возникнвоения исключения ошибки захвата. |
Definition at line 54 of file variable.cpp.
References MakeTimeoutMessage(), and variable.
◆ ~VariableTaken()
| VariableTaken::~VariableTaken |
( |
| ) |
|
◆ MakeTimeoutMessage()
| std::string VariableTaken::MakeTimeoutMessage |
( |
const Variable & | var, |
|
|
bool | edit_mode, |
|
|
const std::chrono::milliseconds & | timeout_duration, |
|
|
const std::string_view | message, |
|
|
const std::source_location & | location ) |
|
staticprotected |
◆ operator bool()
| newlang::VariableTaken::operator bool |
( |
| ) |
const |
|
inline |
◆ operator*() [1/2]
| const Variable & newlang::VariableTaken::operator* |
( |
| ) |
const |
|
inline |
◆ operator*() [2/2]
| Variable & newlang::VariableTaken::operator* |
( |
| ) |
|
|
inline |
◆ operator=()
◆ Variable
◆ variable
| std::variant<Variable *, std::shared_ptr<Variable>, std::shared_ptr<Sync> > newlang::VariableTaken::variable |
|
protected |
The documentation for this class was generated from the following files: