mirror of
https://github.com/tursom/GoCollections.git
synced 2025-02-15 13:12:52 +08:00
12 lines
131 B
Go
12 lines
131 B
Go
package concurrent
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestMutex(t *testing.T) {
|
|
mutex := &ReentrantLock{}
|
|
mutex.Lock()
|
|
mutex.Lock()
|
|
}
|