private void TickMemoryThread() { try { IActorRefreshService refreshService = Services.Get <IActorRefreshService>(); while (this.isActive) { Thread.Sleep(16); if (!this.ProcessIsAlive) { return; } while (refreshService.IsRefreshing) { Thread.Sleep(64); } MemoryBase.TickAllActiveMemory(); } } catch (Exception ex) { Log.Write(new Exception("Memory thread exception", ex)); } }
private void TickMemoryThread() { try { while (this.isActive) { Thread.Sleep(16); MemoryBase.TickAllActiveMemory(); } } catch (Exception ex) { Log.Write(new Exception("Memory thread exception", ex)); } }