Exemple #1
0
 internal virtual void ProcessBlobMessage(MsgBlob msg)
 {
     lock (_blobLock)
     {
         bool needStart = _blobTask == null || _blobTask.IsTerminated();
         if (needStart)
         {
             _blobTask = new BlobProcessor(this);
         }
         _blobTask.Add(msg);
         if (needStart)
         {
             ThreadPool().StartLowPriority("Blob processor task", _blobTask);
         }
     }
 }
		internal virtual void ProcessBlobMessage(MsgBlob msg)
		{
			lock (_blobLock)
			{
				bool needStart = _blobTask == null || _blobTask.IsTerminated();
				if (needStart)
				{
					_blobTask = new BlobProcessor(this);
				}
				_blobTask.Add(msg);
				if (needStart)
				{
					ThreadPool().StartLowPriority("Blob processor task", _blobTask);
				}
			}
		}