From 3baf68d2aac750e5879881fb2f3e6508248ad29c Mon Sep 17 00:00:00 2001 From: Toshiaki Asai Date: Sun, 18 Jan 2015 14:38:10 +0900 Subject: イベントコールバック処理中に例外が発生した時、mikutterがクラッシュしない refs #746 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/serialthread.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'core/serialthread.rb') diff --git a/core/serialthread.rb b/core/serialthread.rb index b397a191..914643bc 100644 --- a/core/serialthread.rb +++ b/core/serialthread.rb @@ -34,7 +34,7 @@ class SerialThreadGroup alias new push # 処理中なら真 - def self.busy? + def busy? @thread_pool.any?{ |t| :run == t.status.to_sym } end # 全てのserial threadの実行をキャンセルする。終了時の処理用 @@ -82,4 +82,3 @@ end # SerialThreadGroup のインスタンス。 # 同時実行数は1固定 SerialThread = SerialThreadGroup.new - -- cgit v1.2.3