golang_dream's People
Forkers
zhaoshiqi123 caoxl-c gxlct008 zerovspace xiewenlong xmoney deepwjp gaoluhua99 zhuliangnan tys2019 zq981604786 mhzxinye chenkai0313 cwww3 markmith hoganchen hyhzl zhangyunlin silie666 chaofavip gbmm leosanqing zhuquanji sirzhang1991 fly5u 1060460048 kokaka529 dukemoon pizicaiman hwd9426 lmyvincent kenxin ming123jew lcff0614 xiaojiakm belyenochi yinjune chenshaoshang jay6697117 hikaruxxo mrzeuuu yufeifly thertype timakang lgj101 tobinzuo loney1 purplestarcb richenlin fishyu-mushroom sywl q-meet ac4fun a233894432 renzhifan 154650362 zmkobe ilaotan qzy123456 18654131180 slsycl smartsyoung alextangxiao raven824 baoshengzhu shikaikai 2018uestc yanming-zhang gdzy1987 zeqin030 666mrfang huntersudo wanghll 401005959 yuanwe ralapz zsysuper jaosnqian caochong1004 y19941115mx atlasnq 1178947261 zzy441315026 01tang10 chenstar2020 myraerae nndaaa ntuwang irac-ding wuyu1028 piaomiaohan12 hxker zhangji-hhu caesar0053 bayekhelix macopad heyuan1990 xzhiming xuxuzhao fanqk19golang_dream's Issues
可重入锁那里初始化有点问题
您好,在看这篇《Go语言如何实现可重入锁?》文章时,提供的代码:
func NewReentrantLock() sync.Locker{ res := &ReentrantLock{ lock: new(sync.Mutex), recursion: 0, host: 0, } res.cond = sync.NewCond(res.lock) return res }
这里返回值res是*ReentrantLock类型,会报错?
sorry, 我理解错了
其他协程等待锁时,本协程Unlock将死锁
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.