Thread (Runnable runnable, ThreadGroup grp, string name) { thread = new System.Threading.Thread (new ThreadStart (InternalRun)); this.runnable = runnable ?? this; tgroup = grp ?? defaultGroup; tgroup.Add (this); if (name != null) thread.Name = name; }
Thread (Runnable runnable, ThreadGroup grp, string name) { cancelTokenSource = new CancellationTokenSource (); task = new Task (InternalRun, cancelTokenSource.Token, TaskCreationOptions.LongRunning); Runnable = runnable ?? this; tgroup = grp ?? defaultGroup; tgroup.Add (this); Name = name ?? "Unknown"; }
private Thread(System.Threading.Thread t) { thread = t; tgroup = defaultGroup; tgroup.Add(this); }
public Thread(ThreadGroup grp, string name) : this(null, grp, name) { }
private Thread (System.Threading.Thread t) { thread = t; tgroup = defaultGroup; tgroup.Add (this); }
public Thread (ThreadGroup grp, string name) : this (null, grp, name) { }
/// <summary>Configure a new daemon for the specified network address.</summary> /// <remarks>Configure a new daemon for the specified network address.</remarks> /// <param name="addr"> /// address to listen for connections on. If null, any available /// port will be chosen on all network interfaces. /// </param> public Daemon(IPEndPoint addr) { myAddress = addr; exports = new ConcurrentHashMap<string, Repository>(); exportBase = new CopyOnWriteArrayList<FilePath>(); processors = new ThreadGroup("Git-Daemon"); services = new DaemonService[] { new _DaemonService_115(this, "upload-pack", "uploadpack" ), new _DaemonService_129(this, "receive-pack", "receivepack") }; }
public _Thread_324(DaemonClient dc, Socket s, ThreadGroup baseArg1, string baseArg2 ) : base(baseArg1, baseArg2) { this.dc = dc; this.s = s; }
public _Thread_278(Daemon _enclosing, Socket listenSock, ThreadGroup baseArg1, string baseArg2) : base(baseArg1, baseArg2) { this._enclosing = _enclosing; this.listenSock = listenSock; }