Boost logo

Boost :

From: Rene Jager (renej_at_[hidden])
Date: 2001-11-17 17:29:20


I think that in order to keep shared_ptr useable (at least in my work
;-) is to use inline assembly for
atomic counters as much as possible; If you have a linux box, check out
/usr/include/asm/atomic.h
that will show the basic atomic counting code; otherwise I can mail you
a copy
I use these in my own smart/ref-count pointers and the overhead is minimal
also, to keep the needed (assembly) code minimal, it should be checked
what "most common platforms"
provide for things like this

renej


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk