C# 클래스 Rhino.Synchronizer

This class provides support for implementing Java-style synchronized methods in Javascript.
This class provides support for implementing Java-style synchronized methods in Javascript. Synchronized functions are created from ordinary Javascript functions by the 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.
상속: Delegator
파일 보기 프로젝트 열기: hazzik/Rhino.Net

공개 메소드들

메소드 설명
Call ( Context cx, Scriptable scope, Scriptable thisObj, object args ) : object
Synchronizer ( Scriptable obj ) : Rhino

Create a new synchronized function from an existing one.

Create a new synchronized function from an existing one.

Synchronizer ( Scriptable obj, object syncObject ) : Rhino

Create a new synchronized function from an existing one using an explicit object as synchronization object.

Create a new synchronized function from an existing one using an explicit object as synchronization object.

메소드 상세

Call() 공개 메소드

public Call ( Context cx, Scriptable scope, Scriptable thisObj, object args ) : object
cx Context
scope Scriptable
thisObj Scriptable
args object
리턴 object

Synchronizer() 공개 메소드

Create a new synchronized function from an existing one.
Create a new synchronized function from an existing one.
public Synchronizer ( Scriptable obj ) : Rhino
obj Scriptable the existing function
리턴 Rhino

Synchronizer() 공개 메소드

Create a new synchronized function from an existing one using an explicit object as synchronization object.
Create a new synchronized function from an existing one using an explicit object as synchronization object.
public Synchronizer ( Scriptable obj, object syncObject ) : Rhino
obj Scriptable the existing function
syncObject object the object to synchronized on
리턴 Rhino