Synchronizer constructor, e.g. new Packages.net.sourceforge.htmlunit.corejs.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 net.sourceforge.htmlunit.corejs.javascript.Delegator
@author Matthias Radestock
| |