Пример #1
0
		internal virtual void Add(MsgBlob msg)
		{
			lock (queue)
			{
				queue.Add(msg);
			}
		}
Пример #2
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);
				}
			}
		}