mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-10 19:13:29 +00:00
Add debug traces to see that we are waiting for a document lock
This commit is contained in:
parent
44bf546d0d
commit
2453f2de97
@ -543,6 +543,8 @@ bool Document::lock(LockType lockType, int timeout)
|
||||
if (timeout > 0) {
|
||||
int delay = MIN(100, timeout);
|
||||
timeout -= delay;
|
||||
|
||||
TRACE("Document::lock: wait 100 msecs for <%d>\n", id());
|
||||
base::this_thread::sleep_for(double(delay) / 1000.0);
|
||||
}
|
||||
else
|
||||
@ -569,6 +571,7 @@ bool Document::lockToWrite(int timeout)
|
||||
}
|
||||
}
|
||||
timeout -= 100;
|
||||
TRACE("Document::lockToWrite: wait 100 msecs for <%d>\n", id());
|
||||
base::this_thread::sleep_for(0.100);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user