public override object Call0(Class last_class, object recv, Frame caller, Proc block) { ThreadGroup group = new ThreadGroup((Class)recv); group.enclosed = 0; group.group = group; //self reference return group; }
internal static bool ruby_thread_abort = false; //TODO: Not done yet - back ground logic!! //needs a default group //----------------------------------------------------------------- internal Thread() : base(Ruby.Runtime.Init.rb_cThread) { if (thread_list == null) { //create the thread_list and add the main thread thread_list = new System.Collections.Generic.LinkedList<Thread>(); thread_list.AddLast(Eval.main_thread); } thGroup = Eval.thgroup_default; }