Click or drag to resize

IJavaObjectBaseMonitorExit Method

Exits the monitor associated with the underlying with this IJavaObjectBase

Namespace: MASES.JCOBridge.C2JBridge.JVMInterop
Assembly: C2JBridge (in C2JBridge.dll) Version: 2.6.9.260611-9a148513a79c26cdd7f1dde468f4f9e06ef3bc7e
Syntax
void MonitorExit()
Remarks
The 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