Example #1
0
 /// <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;
 }
Example #2
0
 // 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;
 }