Skip to content
Snippets Groups Projects
Commit e0c587d8 authored by Peter Reischig's avatar Peter Reischig Committed by Nicola Vigano
Browse files

Added message to show if the file is locked.

git-svn-id: https://svn.code.sf.net/p/dct/code/trunk@746 4c865b51-4357-4376-afb4-474e03ccb993
parent 45128384
No related branches found
No related tags found
No related merge requests found
......@@ -28,6 +28,7 @@ classdef GtLockDB < handle
if (~exist('timeout', 'var'))
timeout = 0;
end
first_time = true;
if ~obj.hasLock
counter = 0;
test = 0;
......@@ -39,6 +40,10 @@ classdef GtLockDB < handle
%gtPrintException(mexc)
obj.hasLock = false;
test = false;
if (first_time)
first_time = false;
fprintf('Locked file: %s (from table %s)', obj.filename, obj.filetable)
end
end
if test
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment