[Project_owners] thread safety
Eric H. Jung
eric.jung at yahoo.com
Mon Jul 17 13:58:16 EDT 2006
If I want to use nsIThread in my JS XPCOM component, how should I guarantee thread safety of the data structures I use? For instance, in these threads I want to share a RegExp object and execute RegExp.test() in each thread. If RegExp.test() succeeds, I add some data to a shared array. Do I need to do anything special to synchronize/lock write access to these objects; e.g., create critial sections?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Project_owners