
I have an OS X Mac with CodeWarrior 8.3 and some version of Apple's XCode. Let's see, g++ --version says it's 3.3. I also have a PowerPC mac running Debian Linux for PowerPC. Have you looked at the ZRef from ZooLib? It's thread safe, and supports CodeWarrior and g++ on PowerPC. It also supports some other platforms: http://www.zoolib.org/ Let's see if I can find the file you need... ZAtomic.h http://cvs.sourceforge.net/viewcvs.py/zoolib/zoolib/src/foundation/ZAtomic.h?rev=1.10&view=markup ZAtomic.cpp http://cvs.sourceforge.net/viewcvs.py/zoolib/zoolib/src/foundation/ZAtomic.c... Look also in ZRefCount.h and ZRefCount.cpp in http://cvs.sourceforge.net/viewcvs.py/zoolib/zoolib/src/foundation/ ZooLib has the MIT License. Michael D. Crawford crawford@goingware.com Read "GoingWare's Bag of Programming Tricks" at http://www.goingware.com/tips/