genericopenlibs/posixrealtimeextensions/src/timerserver.cpp
changeset 44 97b0fb8a2cc2
parent 0 e4d67989cc36
child 57 2efc27d87e1c
equal deleted inserted replaced
22:ddc455616bd6 44:97b0fb8a2cc2
   134 // CTimerServer::ConstructL
   134 // CTimerServer::ConstructL
   135 // Second phase construction. Create the shutdown timer object and the semaphore
   135 // Second phase construction. Create the shutdown timer object and the semaphore
   136 // -------------------------------------------------------------------------------
   136 // -------------------------------------------------------------------------------
   137 void CTimerServer::ConstructL()
   137 void CTimerServer::ConstructL()
   138     {
   138     {
   139     iShutdown = new(ELeave) CShutdown;
   139     CShutdown* shutdown = new(ELeave) CShutdown;
   140     CleanupStack::PushL(iShutdown);
   140     CleanupStack::PushL(shutdown);
   141     iShutdown->ConstructL();
   141     shutdown->ConstructL();
   142 	CleanupStack::Pop();
   142 	CleanupStack::Pop();
       
   143 	iShutdown = shutdown;
       
   144 	shutdown = 0;
   143     }
   145     }
   144 
   146 
   145 // -------------------------------------------------------------------------------
   147 // -------------------------------------------------------------------------------
   146 // CTimerServer::AddToScheduler
   148 // CTimerServer::AddToScheduler
   147 // Add both the server and the shutdown timer objects to the active scheduler
   149 // Add both the server and the shutdown timer objects to the active scheduler