Post
Topic
Board Development & Technical Discussion
Merits 1 from 1 user
Topic OP
Small questions about source code
by
jodicksons
on 25/06/2017, 15:59:11 UTC
⭐ Merited by ETFbitcoin (1)
Hello everyone, I am currently going through the bitcoin source code and each of the functions etc..

I would like to know more about the LOCK() function.

I see a lot of them and while using my search function, can't seem to find it's origin.

I know it is about threads and "locking access" to certain vars but would like to read how it is implemented.

If anybody know where to find the definition of the LOCK or CRITICAL_BLOCK function, it would be greatly appreciated.

example :

 LOCK(csPathCached);