예제 #1
0
        public static Fiber <SET, RES> CreateFiber(Action <Fiber <SET, RES>, SET> action)
        {
            var fiber = FiberManager <Fiber <SET, RES>, SET, RES> .GetInstance().CreateFiber();

            fiber.Invoke(action);
            return(fiber);
        }
예제 #2
0
        public static FiberManager <TYPE, SET, RES> GetInstance()
        {
            lock (lockthis)
            {
                if (_My == null)
                {
                    _My = new FiberManager <TYPE, SET, RES>();
                }
            }

            return(_My);
        }
예제 #3
0
 public static void CloseAllFiber()
 {
     FiberManager <Fiber <SET, RES>, SET, RES> .GetInstance().Close();
 }
예제 #4
0
 public static Fiber <SET, RES> CreateFiber()
 {
     return(FiberManager <Fiber <SET, RES>, SET, RES> .GetInstance().CreateFiber());
 }