るりまサーチ

最速Rubyリファレンスマニュアル検索!
4件ヒット [1-4件を表示] (0.041秒)
トップページ > クエリ:thread[x] > クエリ:Thread[x] > 種類:インスタンスメソッド[x] > クラス:Thread[x] > クエリ:ignore_deadlock=[x]

別のキーワード

  1. drb thread
  2. thread abort_on_exception=
  3. thread pending_interrupt?
  4. thread abort_on_exception
  5. thread backtrace_locations

ライブラリ

検索結果

Thread#ignore_deadlock=(bool) (48144.0)

デッドロック検知を無視する機能をon/offします。デフォルト値はfalseです。

...

trueを渡すとデッドロックを検知しなくなります。

//emlist[][ruby]{
Thread
.ignore_deadlock = true
queue = Thread::Queue.new

trap(:SIGUSR1){queue.push "Received signal"}

# ignore_deadlockがfalseだとエラーが発生する
puts queue.pop
//}

@see Thread#ignore_deadlock...