(k key)
| 75 | } |
| 76 | |
| 77 | func (l *locker) lock(k key) (success bool) { |
| 78 | return atomic.CompareAndSwapInt32(&l.keychain[k], 0, 1) |
| 79 | } |
| 80 | |
| 81 | func (l *locker) unlock(k key) { |
| 82 | atomic.StoreInt32(&l.keychain[k], 0) |
no outgoing calls
no test coverage detected