Re: follow up to 'once rule' expiration

2019-07-18 Thread Lawrence Teo
On Thu, Jul 18, 2019 at 09:46:58AM +0200, Alexandr Nedvedicky wrote: > Hello, > > I've just realized my suggestion [1] to lteo@ was not complete. The single > atomic_cas() used as I've suggested is not sufficient measure. The code > should also do a non-atomic test to check, whether the rule is no

follow up to 'once rule' expiration

2019-07-18 Thread Alexandr Nedvedicky
Hello, I've just realized my suggestion [1] to lteo@ was not complete. The single atomic_cas() used as I've suggested is not sufficient measure. The code should also do a non-atomic test to check, whether the rule is not expired yet. the non-atomic check deals with scenario, where competing threa