Cleanup occurs even when an exception is raised by the protectedcode.
即使受保护的代码引发异常,也进行清理。
2
Otherwise, if the protectedcode threw an exception, the lock might never be released!
否则,如果受保护的代码将抛出异常,锁就有可能永远得不到释放!
3
You can also define the protectedcode in your application. After that, when somebody changes those protectedcode, the application will not be able to run.