private static void Return(YieldInstructionWrapper wrapper)
 {
     lock (pool)
     {
         pool.Push(wrapper);
     }
 }
Exemplo n.º 2
0
        internal void Handle(YieldInstruction yieldInstruction, ISynchronizationContext context, CoroutineWrapper wrapper)
        {
            Log("Handle yield instruction");
            var yieldWrapper = YieldInstructionWrapper.Create(yieldInstruction, context, wrapper);

            unityThread.Post(StartYieldWrapper, this, yieldWrapper);
        }