Y
Hacker News
new
|
ask
|
show
|
jobs
by
ahoka
3639 days ago
Yes, you need to use CAS and barriers to make it thread safe. I have also used a condvar for the consumer to avoid spinning while waiting for log messages.