DEV: Apply syntax_tree formatting to script/*

This commit is contained in:
David Taylor
2023-01-07 11:53:14 +00:00
parent ff508d1ae5
commit 436b3b392b
143 changed files with 8905 additions and 7353 deletions

View File

@ -9,13 +9,9 @@ class ThreadDetective
Thread.new { sleep 1 }
end
def self.start(max_threads)
@thread ||= Thread.new do
self.new.monitor(max_threads)
end
@thread ||= Thread.new { self.new.monitor(max_threads) }
@trace = TracePoint.new(:thread_begin) do |tp|
Thread.current.origin = Thread.current.inspect
end
@trace = TracePoint.new(:thread_begin) { |tp| Thread.current.origin = Thread.current.inspect }
@trace.enable
end
@ -52,5 +48,4 @@ class ThreadDetective
sleep 1
end
end
end