Update contrib.
2 * Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of the License "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
20 #include "ct/logger.h"
22 EXPORT_C MCTTokenObject::MCTTokenObject(MCTToken& aToken)
24 LOG(_L("MCTTokenObject::MCTTokenObject: token object created")); // can't call Label at this point
27 aToken.ObjectCreated();
32 EXPORT_C void MCTTokenObject::Release()
34 LOG1(_L("MCTTokenObject::Release: token object released: %-32S"), &Label());
37 // Take a copy of the token as we need to release it last
38 MCTToken& token = Token();
41 // this MAY NOT EXIST ANY MORE!!
48 EXPORT_C void MCTTokenObject::DoRelease()
50 LOG1(_L("MCTTokenObject::DoRelease: destroying token object: %-32S"), &Label());
58 EXPORT_C void MCTTokenObject::AddTokenRef()
60 ++(Token().ReferenceCount());