datacommsserver/esockserver/MobilityCoreProviders/src/mobilitycpr.cpp
branchRCL_3
changeset 18 9644881fedd0
parent 0 dfb7c4ff071f
child 23 cbb19216b74d
equal deleted inserted replaced
17:9ddb1d67ebaf 18:9644881fedd0
    46 using namespace Messages;
    46 using namespace Messages;
    47 using namespace MeshMachine;
    47 using namespace MeshMachine;
    48 
    48 
    49 //We reserve space for two preallocated activities that may start concurrently on the CPR
    49 //We reserve space for two preallocated activities that may start concurrently on the CPR
    50 //node: destroy and data client stop.
    50 //node: destroy and data client stop.
    51 static const TUint KDefaultMaxPreallocatedActivityCount = 2;
    51 static const TUint KMobilityCPRDefaultMaxPreallocatedActivityCount = 2;
    52 static const TUint KMaxPreallocatedActivitySize = sizeof(MeshMachine::CNodeRetryParallelActivity) + sizeof(MeshMachine::APreallocatedOriginators<4>);
    52 static const TUint KMaxPreallocatedActivitySize = sizeof(MeshMachine::CNodeRetryParallelActivity) + sizeof(MeshMachine::APreallocatedOriginators<4>);
    53 static const TUint KMobilityCPRPreallocatedActivityBufferSize = KDefaultMaxPreallocatedActivityCount * KMaxPreallocatedActivitySize;
    53 static const TUint KMobilityCPRPreallocatedActivityBufferSize = KMobilityCPRDefaultMaxPreallocatedActivityCount * KMaxPreallocatedActivitySize;
    54 
    54 
    55 //-=========================================================
    55 //-=========================================================
    56 //
    56 //
    57 // CMobilityConnectionProvider methods
    57 // CMobilityConnectionProvider methods
    58 //
    58 //