/// <summary> /// This function is called when Logger finishes writing the log to disk. /// It sets writingToDisk = false and then moves any LogEntries in the overflow /// queue to the logEntries queue. Upon completion it clears the overflow queue /// </summary> public static void setWritingFinished() { writingToDisk = false; IEnumerator <LogEntry> queueEnum = overFlow.GetEnumerator(); while (queueEnum.MoveNext()) { logEntries.Enqueue(queueEnum.Current); } overFlow.Clear(); }