 | IJavaObjectBaseMonitorExit Method |
Namespace: MASES.JCOBridge.C2JBridge.JVMInteropAssembly: C2JBridge (in C2JBridge.dll) Version: 2.6.10.261112-5ffe0920c00dbac056780af7ab9b1978b26ef4a5
Syntax
RemarksThe current thread must be the owner of the monitor associated with the underlying Java object referred to by
IJavaObjectBase.
The thread decrements the counter indicating the number of times it has entered this monitor.
If the value of the counter becomes zero, the current thread releases the monitor.
Native code must not use
MonitorExit to exit a monitor entered through a synchronized method or a monitorenter Java virtual machine instruction.
Failing to call
MonitorExit after
MonitorEnter
will result in a deadlock. Always use a try/finally block to guarantee
the monitor is released.
See Also