telephonyprotocols/pdplayer/umts/test/te_spud/src/ActiveSchedulerThread.cpp
branchRCL_3
changeset 41 b836c4d4fce7
parent 0 3553901f7fa8
--- a/telephonyprotocols/pdplayer/umts/test/te_spud/src/ActiveSchedulerThread.cpp	Tue May 25 13:58:08 2010 +0300
+++ b/telephonyprotocols/pdplayer/umts/test/te_spud/src/ActiveSchedulerThread.cpp	Wed Jun 09 10:58:06 2010 +0300
@@ -1,4 +1,4 @@
-// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
+// Copyright (c) 2004-2010 Nokia Corporation and/or its subsidiary(-ies).
 // All rights reserved.
 // This component and the accompanying materials are made available
 // under the terms of "Eclipse Public License v1.0"
@@ -29,14 +29,12 @@
 /**
  Creates and starts the active scheduler, and initializes the units under test
  */
-void ActiveSchedulerMainL(CInputRequestListener* aListener, TThreadId aParentThreadId)
+void ActiveSchedulerMainL(CInputRequestListener* aListener)
 	{
 	CActiveScheduler *sched = new(ELeave) CActiveScheduler;
 	CleanupStack::PushL(sched);
 	CActiveScheduler::Install(sched);
 	
-	aListener->iParentThread.Open(aParentThreadId);
-	
 	__UHEAP_MARK;
 
 	CActiveScheduler::Add(aListener);
@@ -63,9 +61,8 @@
 	CleanupStack::PopAndDestroy(sched);	
 
 	// inform the main test thread that this thread is finished and that there are no memory leaks
-	TRequestStatus *destuctedStatus = &aListener->iThreadDestructed;
-	aListener->iParentThread.RequestComplete(destuctedStatus, KErrNone);
-	aListener->iParentThread.Close();
+	TRequestStatus *destructedStatus = &aListener->iThreadDestructed;
+	aListener->iParentThread.RequestComplete(destructedStatus, KErrNone);	
 	}
 	
 /**
@@ -80,7 +77,7 @@
 		}
 	
 	TActiveSchedulerThreadParams *params = (TActiveSchedulerThreadParams*)aActiveSchedulerParams;
-	TRAPD(err, ActiveSchedulerMainL(params->iListener, params->iThreadId));
+	TRAPD(err, ActiveSchedulerMainL(params->iListener));
 	
 	delete cleanup;