static void Main(string[] args) { if (args.Length <= 0) { return; } logic.logic _logic = new logic.logic(args); Int64 oldtick = 0; Int64 tick = 0; while (true) { oldtick = tick; tick = _logic.poll(); if (logic.logic.closeHandle.is_close) { log.log.trace(new System.Diagnostics.StackFrame(true), tick, "server closed, logic server:{0}", logic.logic.uuid); break; } Int64 ticktime = (tick - oldtick); if (ticktime < 50) { Thread.Sleep(15); } } }
private static void Main(String[] args) { if (args.Length <= 0) { return; } logic _logic = new logic(args); Int64 tick = Environment.TickCount; Int64 tickcount = 0; while (true) { Int64 tmptick = (Environment.TickCount & UInt32.MaxValue); if (tmptick < tick) { tickcount += 1; tmptick = tmptick + tickcount * UInt32.MaxValue; } tick = tmptick; _logic.poll(tick); if (closeHandle.is_close) { Console.WriteLine("server closed, hub server " + logic.uuid); break; } tmptick = (Environment.TickCount & UInt32.MaxValue); if (tmptick < tick) { tickcount += 1; tmptick = tmptick + tickcount * UInt32.MaxValue; } Int64 ticktime = (tmptick - tick); tick = tmptick; if (ticktime > 200) { is_busy = true; } else { is_busy = false; } if (ticktime < 50) { Thread.Sleep(15); } } }
private static void Main(String[] args) { if (args.Length <= 0) { return; } logic _logic = new logic(args); Int64 oldtick = 0; Int64 tick = 0; while (true) { oldtick = tick; tick = _logic.poll(); if (closeHandle.is_close) { log.log.operation(new System.Diagnostics.StackFrame(true), service.timerservice.Tick, "server closed, logic server:{0}", logic.uuid); break; } Int64 ticktime = (tick - oldtick); if (ticktime > 200) { is_busy = true; } else { is_busy = false; } if (ticktime < 50) { Thread.Sleep(15); } } }
public static void Main(String[] args) { if (args.Length <= 0) { return; } logic _logic = new logic(args); Int64 tick = Environment.TickCount; Int64 tickcount = 0; while (true) { Int64 tmptick = (Environment.TickCount & UInt32.MaxValue); if (tmptick < tick) { tickcount += 1; tmptick = tmptick + tickcount * UInt32.MaxValue; } tick = tmptick; _logic.poll(tick); if (_logic._closehandle.is_close) { Console.WriteLine("server closed, hub server " + logic.uuid); break; } tmptick = (Environment.TickCount & UInt32.MaxValue); if (tmptick < tick) { tickcount += 1; tmptick = tmptick + tickcount * UInt32.MaxValue; } Int64 ticktime = (tmptick - tick); tick = tmptick; if (ticktime > 200) { is_busy = true; } else { is_busy = false; } if (ticktime < 50) { Thread.Sleep(15); } } }
public dbproxy_msg_handle(dbproxyproxy dbproxy_, logic _logic_) { _dbproxy = dbproxy_; _logic = _logic_; }