Entry: JS_EndRequest (Function)
Summary: Indicates to the JS engine that the application no longer requires a thread.
Syntax:
void JS_EndRequest(JSContext *cx);
Description:
When your application no longer requires a thread, JS_EndRequest safely decrements the thread counter for the JS engine runtime associated with a given context, cx. If decrementing the counter reduces it to zero, JS_EndRequest locks the runtime and notifies the garbage collector so that values no longer in use can be cleaned up. To avoid garbage collection notification, call JS_SuspendRequest instead of JS_EndRequest.
See also:
|
|
|