tzservices/tzserver/Server/Source/tzlocalizationdb.cpp
branchRCL_3
changeset 82 4610cd70c542
parent 0 2e3d3ce01487
equal deleted inserted replaced
70:739cef680932 82:4610cd70c542
     1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
   145 	}
   145 	}
   146 
   146 
   147 void CTzLocalizationDb::CloseDb()
   147 void CTzLocalizationDb::CloseDb()
   148     {
   148     {
   149 	iLocalizedTimeZoneDb.Close();
   149 	iLocalizedTimeZoneDb.Close();
   150 	if (iZoneMutex.IsHeld())    // it is a leave, so release mutex
   150 	if (iZoneMutex.Handle() && iZoneMutex.IsHeld())    // it is a leave, so release mutex
   151 		{
   151 		{
   152 		iZoneMutex.Signal();
   152 		iZoneMutex.Signal();
   153 		}       
   153 		}       
   154 	iZoneMutex.Close();
   154 	iZoneMutex.Close();
   155 	}
   155 	}