Lock acquires a lock on the mutex.
()
| 10 | |
| 11 | // Lock acquires a lock on the mutex. |
| 12 | func (s SimpleMutex) Lock() { |
| 13 | s <- struct{}{} |
| 14 | } |
| 15 | |
| 16 | // TryLock attempts to acquire a lock on the mutex. |
| 17 | // Returns true if the lock has been acquired, false otherwise. |
no outgoing calls
no test coverage detected