るりまサーチ (Ruby 2.3.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.017秒)

別のキーワード

  1. drb thread
  2. etc sc_thread_cputime
  3. etc sc_thread_keys_max
  4. etc sc_thread_stack_min
  5. thread kill

ライブラリ

検索結果

Thread#thread_variable?(key) -> bool (54340.0)

引数 key で指定した名前のスレッドローカル変数が存在する場合に true、そ うでない場合に false を返します。

...= Thread.current
me.thread_variable_set(:oliver, "a")
me.thread_variable?(:oliver) # => true
me.thread_variable?(:stanley) # => false

[注意]: Thread#[] でセットしたローカル変数(Fiber ローカル変数)が
対象ではない事に注意してください。

@see Thread...
...#thread_variable_get, Thread#[]...