对于下面的示例,锁定是否会在执行i ++之前释放?换句话说,当在锁内调用函数时会释放锁吗?
lock (lockerobject /*which is static*/) { call2anotherFunction(); i++; }
c#
c# ×1