GoCollections/concurrent/ReentrantLock_test.go

12 lines
131 B
Go
Raw Normal View History

2022-03-23 10:15:18 +08:00
package concurrent
import (
"testing"
)
func TestMutex(t *testing.T) {
mutex := &ReentrantLock{}
mutex.Lock()
mutex.Lock()
}