I am working on a messaging application that retreives data in the background. So far I have used AO extensively but now use data size has increased a lot. And also on retreiving that data we insert it in symbian database....which is taking a lot of time to write, also we are doing it in the RunL of AO...so its blocking the user inputs, key events.
For this hanging issue I have created a thread which will be signalled by an AO on receiving data. This thread on being resumed will parse the data, insert it in database will again notify the concerned AO that it has done the job and now that AO can notify the UI by drawing, changing UI states etc...
Now the issues is that when am trying to signal an AO in main thread from another thread that I have created. I went through various topics in the forum and found that one of the way of doing that is to create a default RThread object in the parent thread....and then use this handle to signal the AO of request completion from some other thread.
in thread I use the handle to primary process
TRequestStatus* ptr = &iStatus;
But it is not signalling the AO. Any Hints ? Is there any other way for implementing this kind of behaviour?