equal
deleted
inserted
replaced
312 } |
312 } |
313 return appendRetVal; |
313 return appendRetVal; |
314 } |
314 } |
315 TBool CSenServiceDispatcher::RemoveFromQueue(TInt aTransactionID) |
315 TBool CSenServiceDispatcher::RemoveFromQueue(TInt aTransactionID) |
316 { |
316 { |
|
317 TLSLOG_FORMAT((KSenDispatcherLogChannel, KSenDispatcherLogLevel, _L("CSenServiceDispatcher::RemoveFromQueue - VrtlTxnID (%d)"), aTransactionID)); |
317 //This method gets called from two places 1)main thread from |
318 //This method gets called from two places 1)main thread from |
318 //CancelTransaction(aTransactionID) method and 2)child thread from |
319 //CancelTransaction(aTransactionID) method and 2)child thread from |
319 //ExecuteL method once message has been dispacthed. |
320 //ExecuteL method once message has been dispacthed. |
320 TBool found = EFalse; |
321 TBool found = EFalse; |
321 iCsMessageQueue.Wait(); |
322 iCsMessageQueue.Wait(); |
368 return *ipTransactionsMap; |
369 return *ipTransactionsMap; |
369 } |
370 } |
370 |
371 |
371 TInt CSenServiceDispatcher::AddToTheTransMap(TInt* pVrtlaTxnId,TInt* pActlTxnId) |
372 TInt CSenServiceDispatcher::AddToTheTransMap(TInt* pVrtlaTxnId,TInt* pActlTxnId) |
372 { |
373 { |
|
374 TLSLOG_FORMAT((KSenDispatcherLogChannel, KSenDispatcherLogLevel, _L("CSenServiceDispatcher::AddToTheTransMap - VrtlTxnID [%d], ActlTxnId [%d]"), pVrtlaTxnId, pActlTxnId)); |
373 TInt returnValue = KErrNone; |
375 TInt returnValue = KErrNone; |
374 //Wait on transaction map critical section if it is locked, and then add to |
376 //Wait on transaction map critical section if it is locked, and then add to |
375 //the map. |
377 //the map. |
376 //Critical section is required as RemoveFromTransMap(aTrasnactionID) is called |
378 //Critical section is required as RemoveFromTransMap(aTrasnactionID) is called |
377 //from main thread also. To avoid crash as ipTransactionsMap |
379 //from main thread also. To avoid crash as ipTransactionsMap |
382 return returnValue; |
384 return returnValue; |
383 } |
385 } |
384 |
386 |
385 TInt CSenServiceDispatcher::RemoveFromTransMap(TInt* pVrtlaTxnId) |
387 TInt CSenServiceDispatcher::RemoveFromTransMap(TInt* pVrtlaTxnId) |
386 { |
388 { |
|
389 TLSLOG_FORMAT((KSenDispatcherLogChannel, KSenDispatcherLogLevel, _L("CSenServiceDispatcher::RemoveFromTransMap - VrtlTxnID [%d]"), pVrtlaTxnId)); |
387 TInt returnValue = KErrNone; |
390 TInt returnValue = KErrNone; |
388 //Is called from the main thread after we recieve the response. |
391 //Is called from the main thread after we recieve the response. |
389 returnValue = TransactionMap().Find(*pVrtlaTxnId); |
392 returnValue = TransactionMap().Find(*pVrtlaTxnId); |
390 if( returnValue != KErrNotFound ) |
393 if( returnValue != KErrNotFound ) |
391 { |
394 { |
396 return returnValue; |
399 return returnValue; |
397 } |
400 } |
398 |
401 |
399 TInt CSenServiceDispatcher::UpdateTransMap(TInt* pVrtlaTxnId,TInt* pActlTxnId) |
402 TInt CSenServiceDispatcher::UpdateTransMap(TInt* pVrtlaTxnId,TInt* pActlTxnId) |
400 { |
403 { |
|
404 TLSLOG_FORMAT((KSenDispatcherLogChannel, KSenDispatcherLogLevel, _L("CSenServiceDispatcher::UpdateTransMap - VrtlTxnID [%d], ActlTxnId [%d]"), pVrtlaTxnId, pActlTxnId)); |
401 TInt returnValue = KErrNone; |
405 TInt returnValue = KErrNone; |
402 //Is called from the main thread from HandleMessageChildAOL method. |
406 //Is called from the main thread from HandleMessageChildAOL method. |
403 //Typically gets called when ESenReAuthAndResendNeeded and ESenResendNeeded |
407 //Typically gets called when ESenReAuthAndResendNeeded and ESenResendNeeded |
404 //is required. |
408 //is required. |
405 returnValue = TransactionMap().Find(*pVrtlaTxnId); |
409 returnValue = TransactionMap().Find(*pVrtlaTxnId); |