equal
deleted
inserted
replaced
1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2006-2009 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". |
39 using namespace Messages; |
39 using namespace Messages; |
40 using namespace MeshMachine; |
40 using namespace MeshMachine; |
41 |
41 |
42 //We reserve space for two preallocated activities that may start concurrently on the SCPR |
42 //We reserve space for two preallocated activities that may start concurrently on the SCPR |
43 //node: destroy and data client stop. |
43 //node: destroy and data client stop. |
44 static const TUint KDefaultMaxPreallocatedActivityCount = 2; |
44 static const TUint KSCPRDefaultMaxPreallocatedActivityCount = 2; |
45 static const TUint KMaxPreallocatedActivitySize = sizeof(MeshMachine::CNodeRetryParallelActivity) + sizeof(MeshMachine::APreallocatedOriginators<4>); |
45 static const TUint KMaxPreallocatedActivitySize = sizeof(MeshMachine::CNodeRetryParallelActivity) + sizeof(MeshMachine::APreallocatedOriginators<4>); |
46 static const TUint KSCPRPreallocatedActivityBufferSize = KDefaultMaxPreallocatedActivityCount * KMaxPreallocatedActivitySize; |
46 static const TUint KSCPRPreallocatedActivityBufferSize = KSCPRDefaultMaxPreallocatedActivityCount * KMaxPreallocatedActivitySize; |
47 |
47 |
48 EXPORT_C CCoreSubConnectionProvider::CCoreSubConnectionProvider(CSubConnectionProviderFactoryBase& aFactory, |
48 EXPORT_C CCoreSubConnectionProvider::CCoreSubConnectionProvider(CSubConnectionProviderFactoryBase& aFactory, |
49 const MeshMachine::TNodeActivityMap& aActivityMap) |
49 const MeshMachine::TNodeActivityMap& aActivityMap) |
50 :CSubConnectionProviderBase(aFactory,aActivityMap) |
50 :CSubConnectionProviderBase(aFactory,aActivityMap) |
51 { |
51 { |