Re: what's the different between lock and reentrant lock in Nim

2017-10-02 Thread rayman22201
No problem. Glad I could help Yeah, re-entrant locks are common among most system level languages.

Re: what's the different between lock and reentrant lock in Nim

2017-09-30 Thread mashingan
Thank you. I've read several articles about re-entrant lock, but those articles almost all discussed in Java as examples. When I thought whether those were applicable in Nim too and I found two different modules of lock and with almost same APIs.

Re: what's the different between lock and reentrant lock in Nim

2017-09-29 Thread rayman22201
Nim doesn't expose that to the end user. The official docs for Nim locks say that whether a lock is re-entrant or not is "unspecified", so where are you seeing this? @See: [https://nim-lang.org/docs/locks.html#Lock](https://nim-lang.org/docs/locks.html#Lock) A re-entrant lock is a lock that ca

what's the different between lock and reentrant lock in Nim

2017-09-29 Thread mashingan
I looked at two libs docs and found it's same between those two. What's the different between those?