Esempio n. 1
0
        internal void RestoreExecutionContext(ref ExecutionContext.Switcher switcher)
        {
            if (switcher.IsEmpty)
            {
                _ec = null;
                return;
            }

            switcher.Restore(_ec);
        }
Esempio n. 2
0
 internal void BranchExecutionContext(out ExecutionContext.Switcher switcher)
 {
     if (_ec == null)
     {
         switcher = new ExecutionContext.Switcher();
     }
     else
     {
         switcher        = new ExecutionContext.Switcher(_ec);
         _ec.CopyOnWrite = true;
     }
 }
Esempio n. 3
0
File: Thread.cs Progetto: shana/mono
		internal void BranchExecutionContext (out ExecutionContext.Switcher switcher)
		{
			if (_ec == null) {
				switcher =  new ExecutionContext.Switcher ();
			} else {
				switcher = new ExecutionContext.Switcher (_ec);
				_ec.CopyOnWrite = true;
			}
		}