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