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_SetContextThread (Function)
Summary:     Associate a context with the current thread. No other thread should use the context while the association lasts.
Syntax:
intN JS_SetContextThread(JSContext *cx);

     Argument     Type     Description
     *cx     JSContext     Pointer to a previously established JS context.
Description:
JS_SetContextThread ties cx to the current thread for exclusive use. No other thread should attempt to use cx until this association is removed. Use JS_ClearContextThread to break the tie. 

JS_SetContextThread returns the thread ID of the last thread to be associated with this context.

See also:
JS_GetContextThread

[sh-index] Back to list of manuals