/// <exception cref="System.Exception"></exception>
		public virtual void TestIsAliveInMultiThread()
		{
			IBlockingQueue4 barrier = new BlockingQueue();
			client = (ClientObjectContainer)OpenNewSession();
			client.MessageListener(new _IMessageListener_23(this, barrier));
			Thread workThread = new Thread(new _IRunnable_38(), "Quering");
			workThread.SetDaemon(true);
			workThread.Start();
			barrier.Next();
			client.IsAlive();
		}
		private Thread ThreadFor(string threadName, IRunnable task)
		{
			Thread thread = new Thread(new _IRunnable_41(this, task), threadName);
			thread.SetDaemon(true);
			return thread;
		}
Example #3
0
 public CatchAllThread(ICodeBlock codeBlock)
 {
     _thread = new Thread(new _IRunnable_126(this), "NetworkSocketTestCase.CatchAllThread"
         );
     _thread.SetDaemon(true);
     _codeBlock = codeBlock;
 }