Top Level Namespace

Defined Under Namespace

Modules: Iodine

Instance Method Summary collapse

Instance Method Details

#after_fork(*args, &block) ⇒ Object



214
215
216
# File 'lib/iodine.rb', line 214

def after_fork(*args, &block)
  Iodine.after_fork(*args, &block)
end

#before_fork(*args, &block) ⇒ Object



224
225
226
# File 'lib/iodine.rb', line 224

def before_fork(*args, &block)
  Iodine.before_fork(*args, &block)
end

#check_for_stdatomicsObject



3
4
5
6
7
# File 'ext/iodine/extconf.rb', line 3

def check_for_stdatomics
  RbConfig::MAKEFILE_CONFIG['CC'] = $CC = ENV['CC'] if ENV['CC']
  RbConfig::MAKEFILE_CONFIG['CPP'] = $CPP = ENV['CPP'] if ENV['CPP']
  puts 'Missing support for atomic operations (support for C11) - is your compiler updated?' unless have_header('stdatomic.h')
end

#on_worker_boot(*args, &block) ⇒ Object



219
220
221
# File 'lib/iodine.rb', line 219

def on_worker_boot(*args, &block)
  Iodine.after_fork(*args, &block)
end