Subj : Re: AtomicCount lock (zthread) To : comp.programming.threads From : Gianni Mariani Date : Mon May 30 2005 12:36 pm axter wrote: > I'm trying to figure out how the ZThread AtomicCount class is used for > locking and unlocking. > Can someone please provide example code? > > Or any example code using Atomic locks. Austria C++ (http://austria.sourceforge.net/) has an implementation (for win32) that might give you an idea. However, it uses a "compare exchange", instead of atomic increment. You'll find it in. at_win32_thread.cpp .