예제 #1
0
파일: KFLog.cs 프로젝트: damerell/KF_plugin
 /// <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;
 }
예제 #2
0
파일: KFLog.cs 프로젝트: Gaalidas/KF_plugin
 // 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;
 }