完成分段式的锁

This commit is contained in:
2021-02-24 23:44:14 +08:00
parent 31e90d97b5
commit 7e02ff36ad
4 changed files with 82 additions and 8 deletions

View File

@ -8,8 +8,8 @@
package easylock
type EasyLock interface {
Lock() error
Unlock() error
RLock() error
RUnlock() error
Lock(flag string) error
Unlock(flag string) error
RLock(flag string) error
RUnlock(flag string) error
}