Example #1
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;
            }
        }
Example #2
0
 private Thread(System.Threading.Thread t)
 {
     thread = t;
     tgroup = defaultGroup;
     tgroup.Add(this);
 }
Example #3
0
 public Thread(ThreadGroup grp, string name)
     : this(null, grp, name)
 {
 }
Example #4
0
 private Thread(System.Threading.Thread t)
 {
     thread = t;
     tgroup = defaultGroup;
     tgroup.Add(this);
 }
Example #5
0
 public Thread(ThreadGroup grp, string name)
     : this(null, grp, name)
 {
 }