コード例 #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();
		}