예제 #1
0
 private ThreadGroup(Void unused, ThreadGroup parent, String name)
 {
     this.Name_Renamed        = name;
     this.MaxPriority_Renamed = parent.MaxPriority_Renamed;
     this.Daemon_Renamed      = parent.Daemon_Renamed;
     this.VmAllowSuspension   = parent.VmAllowSuspension;
     this.Parent_Renamed      = parent;
     parent.Add(this);
 }
예제 #2
0
        public Thread(Runnable runnable, ThreadGroup grp, string name)
        {
            thread = new System.Threading.Thread(new System.Threading.ThreadStart(InternalRun));

            this.runnable = runnable ?? this;
            tgroup        = grp ?? defaultGroup;
            tgroup.Add(this);
            if (name != null)
            {
                thread.Name = name;
            }
        }
예제 #3
0
 private Thread(System.Threading.Thread t)
 {
     thread = t;
     tgroup = defaultGroup;
     tgroup.Add(this);
 }