[prev in list] [next in list] [prev in thread] [next in thread] 

List:       taglib-devel
Subject:    Re: iterators+multithreading on win32
From:       Lukáš Lalinský <lalinsky () gmail ! com>
Date:       2011-03-11 8:10:53
Message-ID: AANLkTinau9ybZa9HpRGm7ABe1XgjCW08LKiP-gjNYwh- () mail ! gmail ! com
[Download RAW message or body]

On Sun, Mar 6, 2011 at 12:11 AM, Stephen F. Booth <me@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
_______________________________________________
taglib-devel mailing list
taglib-devel@kde.org
https://mail.kde.org/mailman/listinfo/taglib-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic