标签: .net vb.net asynchronous locking
如果函数在锁定生效时返回,函数中的SyncLock是否会导致死锁?
SyncLock
考虑以下示例:
Dim LockObject As New Object Public Function Myfunction() As Boolean SyncLock LockObject Return True End SyncLock End Function
End SyncLock后会发生return True吗?
End SyncLock
return True