修复读锁释放错误

This commit is contained in:
zhangdeman committed 2021-04-01 20:17:30 +08:00
1 parent 5312092ad6
commit 91894a6f96
2 files changed
+2 -3

No files matched your search

+1 -2
View File
@@ -44,14 +44,13 @@ func (l *lock) Unlock(optionFuncList ...OptionFunc) error {
func (l *lock) RLock(optionFuncList ...OptionFunc) error {
defer l.AddRLockCnt(l.lockCnt)
l.sc.RLock()
return nil
}
func (l *lock) RUnlock(optionFuncList ...OptionFunc) error {
defer l.DecreaseRLockCnt(l.lockCnt)
l.sc.Unlock()
l.sc.RUnlock()
return nil
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.