JavaScript-1.5 Reference

JS_ClearContextThread Function

Summary

Removes the association between a context and the current thread.

Syntax

intN JS_ClearContextThread(JSContext *cx);
NameTypeDescription
*cxJSContextPointer 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

Groups [ Function ]
Documents [ LXR ID Search ]
Entries [ JS_GetContextThread | JS_SetContextThread ]

This page was generated by APIDOC