org.mozilla.javascript
public class Synchronizer extends Delegator
Synchronizer
constructor, e.g.
new Packages.org.mozilla.javascript.Synchronizer(fun)
.
The resulting object is a function that establishes an exclusive
lock on the this
object of its invocation.
The Rhino shell provides a short-cut for the creation of
synchronized methods: sync(fun)
has the same effect as
calling the above constructor.
See Also: Delegator
Constructor Summary | |
---|---|
Synchronizer(Scriptable obj)
Create a new synchronized function from an existing one.
|
Method Summary | |
---|---|
Object | call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) |
Parameters: obj the existing function
See Also: Function