JavaScript-1.5 Reference

JS_GetContextThread Function

Summary

Returns the ID of the associated thread for a context.

Syntax

intN JS_GetContextThread(JSContext *cx);
NameTypeDescription
*cxJSContextPointer to a previously established JS context.

Description

JS_GetContextThread returns the ID of the thread currently associated with this context.

Notes

JS_GetContextThread is available only if the engine is built with JS_THREADSAFE.

See Also

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

This page was generated by APIDOC