Hi,

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?

Thanks,
Eric
_______________________________________________
Project_owners mailing list
[email protected]
http://mozdev.org/mailman/listinfo/project_owners

Reply via email to