fixed: FileLog::get_local_date we need to synchronize when using time_zones pointer

(FileLog::get_local_date is used by Log::PrintDate() and Log of course can be used from different threads)



git-svn-id: svn://ttmath.org/publicrep/winix/trunk@1218 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2019-09-25 16:25:20 +00:00
parent be81307faa
commit e95f32231a
3 changed files with 18 additions and 16 deletions

View File

@@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2018, Tomasz Sowa
* Copyright (c) 2018-2019, Tomasz Sowa
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -95,6 +95,7 @@ PT::Date FileLog::get_local_date(const PT::Date & date)
{
if( time_zones )
{
Lock lock(synchro);
TimeZone * tz = time_zones->GetZone(log_time_zone_id);
if( tz )