Boost logo

Boost :

From: Darin Adler (darin_at_[hidden])
Date: 2002-05-29 12:09:30

On Wednesday, May 29, 2002, at 06:25 AM, Jerry Napoli wrote:

> I'm using boost version 1.27.0 on an x86 linux platform and have just upgraded my kernel to 2.4.18.  After the upgrade, boost::shared_ptr fails to compile because functions such as "atomic_inc_and_test", "atomic_dec_and_test", etc.. which were previously defined in "atomic.h" are no longer defined there.  I can get around the problem by using an older "atomic.h" or by using pthreads, but I was wondering why those functions were removed from the header, or what direction development will take to use atomicity without going through a thread library like pthreads.

The Linux header file atomic.h is a kernel header and not intended for use by end-user programs.

Once we found this out, Peter Dimov and others changed smart_ptr so that it doesn't use this header any more. They also made other improvements to the thread safety code to make it simpler and faster. The current version of Boost, 1.28.0, has this fixed.

     -- Darin

Boost list run by bdawes at, gregod at, cpdaniel at, john at