Subj : Re: User Breakpoints ( int 3) from js_PurgeDeflatedStringCache To : Jaspreet From : Brendan Eich Date : Tue May 24 2005 01:38 pm Jaspreet wrote: > Forgot to mention in my previous mail, that i cannot use NSPR as I have > work under my own Runtime Environment. If the problem requires > Spidermonkey to be built with JS_THREADSAFE, then i need to implement > NSPR like functionality ( which is something i would want to avoid if > possible ) Why not just use NSPR? What is the conflict with your own Runtime Environment? NSPR is layered directly on the OS, and it automatically wraps native threads that call into it with its own bookkeeping. This is a recurrent theme, so we really should have a faq up at http://developer-test.mozilla.org/ -- any volunteers? It's wiki-easy. You need to compile with JS_THREADSAFE if you access the JS API from more than one thread at once -- it doesn't matter that you might use a JSRuntime per thread. I believe Mike Moening is developing a "mini-NSPR" for Windows only SpiderMonkey. Others have done such things already (I'm sorry for forgetting names and dates ;-). Perhaps people will post fresh links. /be .