diff --git a/mg/mglib06.cpp b/mg/mglib06.cpp index 1f4f2ed20..885bc386f 100755 --- a/mg/mglib06.cpp +++ b/mg/mglib06.cpp @@ -555,3 +555,17 @@ const TString TRegistro_std::intest() const { return _intest; } + +int TRegistro_std::lock() +{ + TTable reg("REG"); + reg.put("CODTAB",this->get("CODTAB")); + return reg.read(_lock); +} + +int TRegistro_std::unlock() +{ + TTable reg("REG"); + reg.put("CODTAB",this->get("CODTAB")); + return reg.read(_unlock); +}