Re:Ntimed – NTPD replacement
by asveikau on Wednesday December 24, 2014 @02:46PM
(#8794251)
Too late to edit the post but maybe some code sample will help illustrate the pattern. I am typing code into a web form so I make no guarantees that it is perfect.
[ Parent
| on HN ]
Whoops, I got the signature of CAS slightly wrong. In any case, I already understood the pattern and understand why it is OK. However, as I said, it is the exception that a data race is OK, which is why Rust disallows them by default (it does not disallow them completely).