AcornSearch - Acorn and RISC OS information searching
RISC OS Search
containing
"Nutty quip goes here!"
Home  |  About  |  Filebase Archive  |  StrongHelp Manuals  |  Newsgroups  |  Module Database
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:
JS_BeginRequest
JS_ResumeRequest
JS_SuspendRequest

[sh-index] Back to list of manuals