Improved thread safety

This commit is contained in:
2016-04-02 11:18:17 +02:00
parent ba91d7ed92
commit 6cc2caf62a
17 changed files with 261 additions and 109 deletions
+5 -3
View File
@@ -171,9 +171,9 @@ namespace Ntp.Analyzer.Process
// Initialize log.
if (firstrun)
log.WriteLine ("NTP Analyzer " + version + " started.", Severity.Notice);
log.WriteLine ("Using configuration: " + configFile, Severity.Notice);
log.WriteLine ("Running with pid: " + pid, Severity.Notice);
log.WriteLine ("Instance name: " + name, Severity.Notice);
log.WriteLine ("Using configuration " + configFile, Severity.Notice);
log.WriteLine ("Running with pid " + pid, Severity.Notice);
log.WriteLine ("Instance named " + name, Severity.Notice);
return true;
}
@@ -308,6 +308,8 @@ namespace Ntp.Analyzer.Process
/// </summary>
private void InitializeScheduler ()
{
Job.Reset ();
try {
scheduler = new Scheduler (log);
log.WriteLine ("Initializing jobs.", Severity.Debug);