[haiku-gsoc] Re: Implementation Queries

  • From: Hamish Morrison <hamishm53@xxxxxxxxx>
  • To: haiku-gsoc@xxxxxxxxxxxxx
  • Date: Tue, 20 Jun 2017 14:12:49 +0100

On Tue, Jun 20, 2017 at 9:18 AM, Vivek Roy <vivekroyandroid@xxxxxxxxx> wrote:

Also,
I have made some changes to my previous implementation of asm/atomic.h

Julian, please check.

Your atomic_swap is not atomic. Consider what would happen if another
thread modified the variable between the calls to atomic_get and
atomic_set.

Other related posts: