Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
sixstringtheory
on Jan 18, 2021
|
parent
|
context
|
favorite
| on:
That XOR Trick (2020)
As an example, in our C++ codebase at work we always place mutex locks inside their own scope blocks along with the critical sections of code they’re synchronizing. Helps readability and the scope determines when the mutex is released.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: