Entry: JS_Lock (Function)
Summary: Locks the JS run-time environment.
Syntax:
void JS_Lock(JSRuntime *rt);
Description:
JS_Lock is an empty, API hook function for developers so that they provide an exclusive locking mechanism for the JSRuntime on a specific platform or for a specific application. Developers must create their own locking function that takes a single argument, rt, the JS run-time environment to lock. Locking the runtime protects critical sections in a threaded environment. After performing one or more exclusive lock operations, the runtime should be unlocked with a call to JS_Unlock.
See also:
|
|
|