Boost logo

Boost Users :

Subject: Re: [Boost-users] Signals2 benchmark
From: Dominique Devienne (ddevienne_at_[hidden])
Date: 2015-02-09 06:00:08


On Fri, Feb 6, 2015 at 8:18 PM, Niall Douglas <s_sourceforge_at_[hidden]>
wrote:

> An atomic increment/decrement use count maybe? Slow when contended,
> but faster possibly than alternatives.
>
> BTW you can fold a lock into a pointer by using its bottom bit as the
> lock bit. I have an implementation in Boost.Spinlock if you want it.
>

There's also
https://github.com/facebook/folly/blob/master/folly/PackedSyncPtr.h, FWIW.
--DD



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net