Added process_event for DRC log - makes progress log more useful.

This commit is contained in:
Matthias Koefferlein 2021-05-15 18:04:41 +02:00
parent ea3bfabd90
commit f7fa6d8289
1 changed files with 11 additions and 0 deletions

View File

@ -545,6 +545,7 @@ module DRC
else
str = (" " * indent) + arg
RBA::Logger::log(str)
self._process_events
end
end
@ -563,6 +564,7 @@ module DRC
@log_file.puts(str)
else
RBA::Logger::info(str)
self._process_events
end
end
@ -577,6 +579,7 @@ module DRC
@log_file.puts("ERROR: " + arg)
else
RBA::Logger::error(arg)
self._process_events
end
end
@ -591,6 +594,7 @@ module DRC
@log_file.puts("WARNING: " + arg)
else
RBA::Logger::warn(arg)
self._process_events
end
end
@ -1988,6 +1992,7 @@ CODE
t = RBA::Timer::new
t.start
self._process_events
GC.start # force a garbage collection before the operation to free unused memory
res = yield
t.stop
@ -2554,6 +2559,12 @@ CODE
@used_output_layers[li] = true
end
end
def _process_events
if RBA::Application.instance
RBA::Application.instance.process_events
end
end
private