I am still stucked. The follwing code produce the error :
undefined method `synchronize' for #<Mutex:0x83b858c>

int main(int argc, char ** argv){
  int state;
  ruby_sysinit(&argc, &argv);

  RUBY_INIT_STACK
  ruby_init();

  ruby_init_loadpath();
  ruby_script("embed");

  rb_eval_string_protect("$mutex = Mutex.new", &state);
  checkRubyError(state);

  rb_eval_string_protect("$mutex.synchronize() { }", &state);
  checkRubyError(state);

  return 0;
}
-- 
Posted via http://www.ruby-forum.com/.