contentpublishingsrv/contentpublishingserver/cpserver/src/cpserver.cpp
branchRCL_3
changeset 18 bd874ee5e5e2
parent 0 79c6a41cd166
child 19 502e5d91ad42
equal deleted inserted replaced
9:d0529222e3f0 18:bd874ee5e5e2
    13 *
    13 *
    14 * Description:  Content publisher Server
    14 * Description:  Content publisher Server
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 
    18 #include <mw/memorymanager.h>
    19 #include <liwcommon.h>
    19 #include <liwcommon.h>
    20 #include <ecom/ecom.h>
    20 #include <ecom/ecom.h>
    21 #include <fbs.h>
    21 #include <fbs.h>
    22 
    22 
    23 #include "cpublisherregistrymap.h"
    23 #include "cpublisherregistrymap.h"
   385 // Returns: KErrNone
   385 // Returns: KErrNone
   386 // -----------------------------------------------------------------------------
   386 // -----------------------------------------------------------------------------
   387 //
   387 //
   388 TInt E32Main()
   388 TInt E32Main()
   389     {
   389     {
   390     return CCPServer::ThreadStart( );
   390     RAllocator* iAllocator = MemoryManager::SwitchToFastAllocator();
       
   391     
       
   392     //Get the return value (needs to call CloseFastAllocator() before return)
       
   393     TInt iReturnValue = CCPServer::ThreadStart( );
       
   394     MemoryManager::CloseFastAllocator(iAllocator);
       
   395     return iReturnValue;  
   391     }
   396     }
   392 
   397 
   393 // End of File
   398 // End of File