lib/modern_times/base/supervisor.rb in modern_times-0.3.8 vs lib/modern_times/base/supervisor.rb in modern_times-0.3.9
- old
+ new
@@ -35,9 +35,10 @@
worker.setup
#end
#tmp_thread.join
end
worker.thread = Thread.new do
+ java.lang.Thread.current_thread.name = "ModernTimes worker: #{worker}"
#ModernTimes.logger.debug "#{worker}: Started thread with priority #{Thread.current.priority}"
worker.start
end
@workers << worker
end
\ No newline at end of file