serviceproviders/sapi_location/tsrc/dev/tlocservicetest/src/tfunctionthread.cpp
branchRCL_3
changeset 45 a9c0808a1095
parent 44 0b68a1b0c15e
equal deleted inserted replaced
44:0b68a1b0c15e 45:a9c0808a1095
   348 
   348 
   349 
   349 
   350 
   350 
   351 TInt ServiceFailedTest(TAny */*Arg*/)
   351 TInt ServiceFailedTest(TAny */*Arg*/)
   352 {
   352 {
   353     TInt errRet;
   353     TInt errRet = 0;
   354     CTrapCleanup* cleanup = CTrapCleanup::New();
   354     CTrapCleanup* cleanup = CTrapCleanup::New();
   355     TRAPD(err , errRet = ServiceFailedFunctionL()) ;
   355     TRAPD(err , errRet = ServiceFailedFunctionL()) ;
   356     delete cleanup ;
   356     delete cleanup ;
   357 
   357 
   358     return errRet ;
   358     return errRet ;
   392 
   392 
   393 TInt ConcurrentGetLocationCalls(TAny */*Arg*/)
   393 TInt ConcurrentGetLocationCalls(TAny */*Arg*/)
   394 {
   394 {
   395   
   395   
   396 	CTrapCleanup* cleanup = CTrapCleanup::New();
   396 	CTrapCleanup* cleanup = CTrapCleanup::New();
   397 	TInt  Val ;
   397 	TInt  Val = 0;
   398 	//Install a new active scheduler to this thread 
   398 	//Install a new active scheduler to this thread 
   399 	TRAPD(err ,( Val = ConcurrentGetLocCallsL()) );
   399 	TRAPD(err ,( Val = ConcurrentGetLocCallsL()) );
   400 	delete cleanup ;
   400 	delete cleanup ;
   401  	
   401  	
   402  	if(err)
   402  	if(err)
   448 
   448 
   449 TInt ConcurrentTraceCalls(TAny */*Arg*/)
   449 TInt ConcurrentTraceCalls(TAny */*Arg*/)
   450 {
   450 {
   451   
   451   
   452 	CTrapCleanup* cleanup = CTrapCleanup::New();
   452 	CTrapCleanup* cleanup = CTrapCleanup::New();
   453 	TInt  Val ;
   453 	TInt  Val = 0;
   454 	//Install a new active scheduler to this thread 
   454 	//Install a new active scheduler to this thread 
   455 	TRAPD(err ,( Val = ConcurrentTraceCallsL()) );
   455 	TRAPD(err ,( Val = ConcurrentTraceCallsL()) );
   456 	delete cleanup ;
   456 	delete cleanup ;
   457  	
   457  	
   458  	if(err)
   458  	if(err)
   466 
   466 
   467 TInt TraceTimeOutFunc(TAny */*Arg*/)
   467 TInt TraceTimeOutFunc(TAny */*Arg*/)
   468     {
   468     {
   469 
   469 
   470     CTrapCleanup* cleanup = CTrapCleanup::New();
   470     CTrapCleanup* cleanup = CTrapCleanup::New();
   471     TInt  Val ;
   471     TInt  Val = 0;
   472     //Install a new active scheduler to this thread 
   472     //Install a new active scheduler to this thread 
   473     TRAPD(err ,( Val = TraceTimeOutFuncL()) );
   473     TRAPD(err ,( Val = TraceTimeOutFuncL()) );
   474     delete cleanup ;
   474     delete cleanup ;
   475 
   475 
   476     if(err)
   476     if(err)