JavaScript-1.5 Reference

JS_ResumeRequest Function

Summary

Indicates to the JS engine that an application thread in a suspended request wants to resume executing JS API calls from non-blocking code. Restarts a previously suspended thread.

Syntax

void JS_ResumeRequest(JSContext *cx, jsrefcount saveDepth);

Description

When your multi-threaded application restarts a previously suspended request, JS_ResumeRequest safely restores the request depth counter from saveDepth for the given context, cx. It does this by calling JS_BeginRequest exactly saveDepth times, so saveDepth must come from the return value of a prior JS_SuspendRequest call.

Notes

JS_ResumeRequest is available only if you compile the JS engine with JS_THREADSAFE defined. In a default engine compilation, JS_THREADSAFE is undefined.

See Also

Groups [ Function ]
Documents [ LXR ID Search ]
Entries [ JS_BeginRequest | JS_EndRequest | JS_SuspendRequest ]

This page was generated by APIDOC