[haiku-commits] Re: haiku: hrev49531 - src/add-ons/kernel/network/stack

  • From: Axel Dörfler <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 13 Aug 2015 11:18:31 +0200

Am 12/08/2015 um 15:25 schrieb stefano.ceccherini@xxxxxxxxx:

+ inline void SetBusy(bool busy) {
atomic_set(&fBusy, busy ? 1 : 0); };
+ inline bool IsBusy() const { return
atomic_get((int32*)&fBusy) == 1 ;};
[...]
> + int32 fBusy;

I haven't checked the commit for correctness yet, but at least the cast should be superfluous.

Bye,
Axel.

Other related posts: