From 1b1925450dfe82ea00cbfb1b238dc3b621a9f322 Mon Sep 17 00:00:00 2001 From: augusto Date: Wed, 15 Oct 1997 14:47:23 +0000 Subject: [PATCH] Metodi lock ed unlock in TRegistro_std git-svn-id: svn://10.65.10.50/trunk@5379 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- mg/mglib06.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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); +}