static internal RThread Start(NetRuby ruby, object[] args) { RThread parent = ruby.GetCurrentContext(); RThread thrd = (RThread)parent.Clone(); return(thrd.Start(args)); }
static public RBasic NewThread(object[] argv, RMetaObject meta) { NetRuby ruby = meta.ruby; RThread parent = ruby.GetCurrentContext(); RThread thrd = (RThread)parent.Clone(); thrd.thread = null; thrd.klass = meta; ruby.CallInit(thrd, argv); return(thrd); }