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_BeginRequest (Function)
Summary:     Indicates to the JS engine that the application is starting a thread.
Syntax:
void JS_BeginRequest(JSContext *cx);

Description:
When your application start a new thread, JS_BeginRequest safely increments the thread counter for the JS engine runtime associated with a given context, cx. In order to increment the counter, this function first checks that garbage collection is not in process. If it is, JS_BeginRequest waits until garbage collection is complete before locking the JS engine runtime and incrementing the thread counter. After incrementing the counter, JS_BeginRequest unlocks the runtime if it previously locked it.


See also:
JS_EndRequest
JS_ResumeRequest
JS_SuspendRequest

[sh-index] Back to list of manuals