Пример #1
0
		private void Perform(ZeroWaitEvent waitEvent)
		{
			syncEvent = waitEvent;
			syncEvent.AddReference();
			Perform();
		}
Пример #2
0
		private void RunContinuations()
		{
			if (continuationActions.Count == 0)
			{
				return;
			}

			var waitEvent = new ZeroWaitEvent(false);
			foreach (var action in continuationActions)
			{
				action.Perform(waitEvent);
			}
			waitEvent.WaitZeroReferences();
			waitEvent.Close();
		}