JuggerNET Runtime Library v3.6.54.0
3.6.54.0
|
Provides access to Java synchronization primitives. By declaring the instance in a using
block, the .NET runtime will automatically and safely (in the presence of exceptions) enter and exit a critical section based on the specified Java object.
More...
Public Member Functions | |
JavaProxyLockHolder (JavaProxy proxy) | |
Creates the instance and attempts to enter a critical section on the passed in object. More... | |
void | Exit () |
Releases the critical section that is held on the object. You don't have to call this method explicitly, but you can. It will be called automatically when the object is disposed or garbage collected. More... | |
void | Dispose () |
Exits the monitor. More... | |
Provides access to Java synchronization primitives. By declaring the instance in a using
block, the .NET runtime will automatically and safely (in the presence of exceptions) enter and exit a critical section based on the specified Java object.
Please note that this type does not exit the monitor on object finalization as this would not be compatible with the semantics of the monitor (enter and exit on the same thread).
|
inline |
Creates the instance and attempts to enter a critical section on the passed in object.
proxy | the object on which a Java lock is to be acquired. |
|
inline |
Exits the monitor.
This function is part of the IDisposable
pattern and will typically be used via the using
clause.
References Codemesh.JuggerNET.JavaProxyLockHolder.Exit().
|
inline |
Releases the critical section that is held on the object. You don't have to call this method explicitly, but you can. It will be called automatically when the object is disposed or garbage collected.
Referenced by Codemesh.JuggerNET.JavaProxyLockHolder.Dispose().