iterators+multithreading on win32

Lukáš Lalinský lalinsky at gmail.com
Fri Mar 11 09:10:53 CET 2011


On Sun, Mar 6, 2011 at 12:11 AM, Stephen F. Booth <me at sbooth.org> wrote:
> I'm not familiar with atomic operations on Windows or Linux, but I've
> attached my first stab at a patch that makes RefCounter use atomic increment
> and decrement operations on OS X.
> I doubt this will take care of everything, but it should be a start.

I think that we should be using OSAtomicDecrement32Barrier and
OSAtomicIncrement32Barrier, but otherwise it looks fine. Nick already
committed the code to SVN, including a Windows version. I'll steal
some code from boost to make it work on other platforms too (or
perhaps we could optionally depend on boost?). These changes will not
be released in 1.7, which really should have been released already,
but in the next release.

Lukas


More information about the taglib-devel mailing list