mirror of
https://github.com/tursom/GoCollections.git
synced 2025-02-15 21:20:39 +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()
|
||
|
}
|