serviceproviders/sapi_location/tsrc/dev/tlocationprovidertest/src/tconcurrentgetlocation.cpp
equal
deleted
inserted
replaced
75 } |
75 } |
76 |
76 |
77 |
77 |
78 TInt ConcurrentGetLocCallsL() |
78 TInt ConcurrentGetLocCallsL() |
79 { |
79 { |
80 |
80 __UHEAP_MARK ; |
81 |
81 |
82 CActiveScheduler *Scheduler = new CActiveScheduler ; |
82 CActiveScheduler *Scheduler = new CActiveScheduler ; |
83 |
83 |
84 CActiveScheduler :: Install(Scheduler) ; |
84 CActiveScheduler :: Install(Scheduler) ; |
85 |
85 |
156 return KErrNotFound ; |
156 return KErrNotFound ; |
157 } |
157 } |
158 |
158 |
159 TLiwVariant ErrVariant = errparam->Value() ; |
159 TLiwVariant ErrVariant = errparam->Value() ; |
160 TInt ret = ErrVariant.AsTInt32() ; |
160 TInt ret = ErrVariant.AsTInt32() ; |
161 |
161 a.ResetAndDestroy() ; |
162 locinterface->Close() ; |
162 locinterface->Close() ; |
163 delete ServiceHandler ; |
163 delete ServiceHandler ; |
164 delete InputList ; |
164 delete InputList ; |
165 delete OutParmList ; |
165 delete OutParmList ; |
166 delete Scheduler ; |
166 delete Scheduler ; |
|
167 __UHEAP_MARKEND ; |
167 return ret ; // Controll never reaches here |
168 return ret ; // Controll never reaches here |
168 } |
169 } |
169 |
170 |
170 |
171 |
171 TInt ConcurrentGetLocationCalls(TAny */*Arg*/) |
172 TInt ConcurrentGetLocationCalls(TAny */*Arg*/) |