Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
screwt
on Aug 21, 2014
|
parent
|
context
|
favorite
| on:
fork() can fail
As per jacquesm's comment below[0], your example would, by default, be compiled out if NDEBUG is defined. So in production you'd never release the lock.
[0]
https://news.ycombinator.com/item?id=8206258
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
[0] https://news.ycombinator.com/item?id=8206258