JuggerNET Runtime Library

JavaProxyLockHolder Class

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.

For a list of all members of this type, see JavaProxyLockHolder Members.

System.Object
   Codemesh.JuggerNET.JavaProxyLockHolder

public class JavaProxyLockHolder : IDisposable

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Example

    using( JavaProxyLockHolder jlh = new JavaProxyLockHolder( obj ) )
    {
        // perform code in thread-safe block
    }

Requirements

Namespace: Codemesh.JuggerNET

Assembly: netrt (in netrt.dll)

See Also

JavaProxyLockHolder Members | Codemesh.JuggerNET Namespace | JavaProxyMonitor