示例#1
0
 public timer(timersManager mgr, int delayTime, Action <object> callBack, int cnt, object data)
 {
     this._mgr       = mgr;
     timer._idCount += 1L;
     this._id        = timer._idCount;
     this._delayTime = delayTime;
     this._cnt       = cnt;
     this._userData  = data;
     this._callBack  = callBack;
 }
示例#2
0
 public timer(timersManager mgr, int delayTime, Action <object> callBack, int cnt, object data)
 {
     _mgr = mgr;
     _idCount++;
     _id        = _idCount;
     _delayTime = delayTime;
     _cnt       = cnt;
     _userData  = data;
     _callBack  = callBack;
 }
示例#3
0
 public static timer create(timersManager mgr, int delayTime, Action <object> callBack, int cnt = 1, object data = null)
 {
     return(new timer(mgr, delayTime, callBack, cnt, data));
 }