11-17-2009 01:11 AM
I have number of persistent store for storing data, etc
When I manipulating one store (adding, deleting or updating), should I need to block manipulation on other store?
Solved! Go to Solution.
11-17-2009 03:57 AM
you don't have to
11-17-2009 04:16 AM - edited 11-17-2009 05:59 AM
You need to do this based on the needs of your application. There are no restrictions that I am aware of in the use of PersistentStore.
Opps, had not seen Simon's post.
11-17-2009 05:03 AM
we have a multti thread application,so we have situations like diffrent threads can modify(create/update/remove) the same store,
in this case should we need to synchronize the modifying method like one thread can do modifications at a time?
or the RIM API will handle this situtaions by itself?
what about the fetch operation from same store from diffent threads?
11-17-2009 05:15 AM
as there is no notice about the class being threadsafe i would suggest that you synchronize the access yourself.