Ejemplo n.º 1
0
		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;
		}
Ejemplo n.º 2
0
		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";
		}
Ejemplo n.º 3
0
 private Thread(System.Threading.Thread t)
 {
     thread = t;
     tgroup = defaultGroup;
     tgroup.Add(this);
 }
Ejemplo n.º 4
0
 public Thread(ThreadGroup grp, string name) : this(null, grp, name)
 {
 }
Ejemplo n.º 5
0
		private Thread (System.Threading.Thread t)
		{
			thread = t;
			tgroup = defaultGroup;
			tgroup.Add (this);
		}
Ejemplo n.º 6
0
		public Thread (ThreadGroup grp, string name) : this (null, grp, name)
		{
		}
Ejemplo n.º 7
0
		/// <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") };
		}
Ejemplo n.º 8
0
			public _Thread_324(DaemonClient dc, Socket s, ThreadGroup baseArg1, string baseArg2
				) : base(baseArg1, baseArg2)
			{
				this.dc = dc;
				this.s = s;
			}
Ejemplo n.º 9
0
			public _Thread_278(Daemon _enclosing, Socket listenSock, ThreadGroup baseArg1, string
				 baseArg2) : base(baseArg1, baseArg2)
			{
				this._enclosing = _enclosing;
				this.listenSock = listenSock;
			}