I have a content provider which is going out to some record sources in the cloud and doing queries, the results are added to a cursor reference that is passed into those classes
WebSearch1.addCursor(mContext, cursor, projection, filter);
WebSearch2.addCursor(mContext, cursor, projection, filter);
Works great, but it is asynchronous, would like to kick it off in a async task/thread to improve response times. I could create a cursor in for each of the sources, and then add them into a MergeCursor. Not a huge deal to do it that way, but just wondering if the cursor is thread safe to pass off to two different threads to add to the cursor synchronously.
Thanks,
This interface provides random read-write access to the result set returned by a database query. Cursor implementations are not required to be synchronized so code using a Cursor from multiple threads should perform its own synchronization when using the Cursor.