mirror of
https://github.com/crazybber/awesome-patterns.git
synced 2024-11-21 20:36:01 +03:00
Update read_write_lock.md
This commit is contained in:
parent
a99ebbcebf
commit
14a9fa097b
@ -8,6 +8,7 @@ package router
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"sync"
|
"sync"
|
||||||
|
"net"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Socket string
|
type Socket string
|
||||||
@ -108,4 +109,4 @@ go func(r *Router){
|
|||||||
// until counter = 0 Write can be acquired
|
// until counter = 0 Write can be acquired
|
||||||
}(router)
|
}(router)
|
||||||
|
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user