JS_ClearContextThread |
Function |
|
Summary
Removes the association between a context and the current thread.
|
Syntax
intN JS_ClearContextThread(JSContext *cx);
Name | Type | Description |
*cx | JSContext | Pointer to a previously established JS context.
|
|
Description
JS_ClearContextThread clears any tie cx had with a thread.
The context should not be used until it as associated with another thread
via JS_SetContextThread .
JS_ClearContextThread returns the thread ID of the last thread to
be associated with this context.
|
Notes
JS_ClearContextThread is available only if the engine is built
with JS_THREADSAFE .
|
See Also
|