genericopenlibs/posixrealtimeextensions/src/timerserver.cpp
branchRCL_3
changeset 57 2efc27d87e1c
parent 56 acd3cd4aaceb
equal deleted inserted replaced
56:acd3cd4aaceb 57:2efc27d87e1c
   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     CShutdown* shutdown = new(ELeave) CShutdown;
   139     iShutdown = new(ELeave) CShutdown;
   140     CleanupStack::PushL(shutdown);
   140     CleanupStack::PushL(iShutdown);
   141     shutdown->ConstructL();
   141     iShutdown->ConstructL();
   142 	CleanupStack::Pop();
   142 	CleanupStack::Pop();
   143 	iShutdown = shutdown;
       
   144 	shutdown = 0;
       
   145     }
   143     }
   146 
   144 
   147 // -------------------------------------------------------------------------------
   145 // -------------------------------------------------------------------------------
   148 // CTimerServer::AddToScheduler
   146 // CTimerServer::AddToScheduler
   149 // Add both the server and the shutdown timer objects to the active scheduler
   147 // Add both the server and the shutdown timer objects to the active scheduler