Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
searealist
on Jan 27, 2021
|
parent
|
context
|
favorite
| on:
Latches in C++20
Probably atomic increment / decrement + condition_variable. Just check if you hit 0 on decrement to notify waiters (or return if you are the waiter).
ridiculous_fish
on Jan 27, 2021
[–]
Well now that sounds like a semaphore!
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: