Class: Thread

Inherits:
Object show all
Defined in:
lib/droiuby/support/thread.rb

Class Method Summary collapse

Class Method Details

.with_large_stack(stack_size_kb = 128, &block) ⇒ Object



11
12
13
14
15
16
# File 'lib/droiuby/support/thread.rb', line 11

def self.with_large_stack(stack_size_kb = 128, &block)
  runnable = RunnableWrapper.new(block).to_native 
  t = Java::java.lang.Thread.new(nil, runnable, "block with large stack", stack_size_kb * 1024) 
  t.start 
  t 
end