Exemplo n.º 1
0
        public static Callback Acquire(Action action)
        {
            Callback0 callback = ObjectPools.Instance.Acquire <Callback0>();

            callback.Handler = action;
            return(callback);
        }
Exemplo n.º 2
0
        public int AddTimer(int start, int interval, Action handler)
        {
            Callback0 callback = ObjectPools.Instance.Acquire <Callback0>();

            callback.Handler = handler;
            var p = GetTimerData(callback, start, interval);

            return(AddTimer(p));
        }