Subj : Re: JS_ResumeRequest puzzle To : Bob Kline From : Brendan Eich Date : Wed Mar 17 2004 10:04 am Bob Kline wrote: > I'm trying to apply the generous advice we've received over the past few > days on making the Sabltron XSL/T package's use of SpiderMonkey > thread-safe. The latest snag is a compilation failure: > > ....jsext.cpp(465) : error C2660: 'JS_ResumeRequest' : function does not > take 1 arguments > > Lines 464-466 have: > > #ifdef JS_THREADSAFE > JS_ResumeRequest(cx); > #endif > > where cx is declared as JSContext*. Here's what the documentation says > for JS_ResumeRequest: The docs are out of date -- but you can use the force, read the source. JS_ResumeRequest takes a second saveDepth parameter, of type jsrefcount, that you declare locally and set beforehand to the return value of JS_SuspendRequest. /be .