messagingfw/watcherfw/src/watcher.cpp
branchRCL_3
changeset 23 d51193d814ea
parent 22 d2c4c66342f3
equal deleted inserted replaced
22:d2c4c66342f3 23:d51193d814ea
    41 	CActiveScheduler::Install(scheduler);
    41 	CActiveScheduler::Install(scheduler);
    42 
    42 
    43 	// Launch the start-up manager that will launch the watchers in the 
    43 	// Launch the start-up manager that will launch the watchers in the 
    44  	// correct start-up state
    44  	// correct start-up state
    45 	CWatcherSSAStartupMgr* startupMgr = CWatcherSSAStartupMgr::NewL();
    45 	CWatcherSSAStartupMgr* startupMgr = CWatcherSSAStartupMgr::NewL();
    46 	CleanupStack::PushL(startupMgr);
       
    47 
    46 
    48 	// The System Starter is waiting for us (start_method = EWaitForStart)
    47 	// The System Starter is waiting for us (start_method = EWaitForStart)
    49 	// so we rendez-vous so it can start the next process in the SSC
    48 	// so we rendez-vous so it can start the next process in the SSC
    50 	RProcess::Rendezvous(KErrNone);
    49 	RProcess::Rendezvous(KErrNone);
    51 
    50 
    52 	// We start the scheduler even if there are no watchers (vs previous
    51 	// We start the scheduler even if there are no watchers (vs previous
    53 	// behaviour) as the SSA manager is also an active object
    52 	// behaviour) as the SSA manager is also an active object
    54 	CActiveScheduler::Start();
    53 	CActiveScheduler::Start();
    55 	
    54 	
    56 	// Tidy up
    55 	// Tidy up
    57 	CleanupStack::PopAndDestroy(2, scheduler);
    56 	CleanupStack::PopAndDestroy(scheduler);
    58 	}
    57 	}
    59 
    58 
    60 static TInt DoLaunchThread(TAny*)
    59 static TInt DoLaunchThread(TAny*)
    61 	{
    60 	{
    62 	CTrapCleanup* cleanup = CTrapCleanup::New();
    61 	CTrapCleanup* cleanup = CTrapCleanup::New();