/// <summary>Prepares and creates the log writer thread.</summary> public static void StartWriter() { sync = new object(); queue = new Queue <string>(); writer = new KFLogWriter(KFPersistenceManager.logFilePath, queue, sync); thread = new Thread(writer.Loop); thread.Start(); Ready = true; }
// Initializing as "false" is horribly redundant. /// <summary>Prepares and creates the log writer thread.</summary> public static void StartWriter() { sync = new object(); queue = new Queue<string>(); writer = new KFLogWriter(KFPersistenceManager.logFile, queue, sync); thread = new Thread(writer.Loop); thread.Start(); Ready = true; }