[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-05 17:21:32
Message-ID: AANLkTikcVa6jcQiSegK-ZrwxS=0wfSZJWCWRXTmN8Kxo () mail ! gmail ! com
[Download RAW message or body]

On Sat, Mar 5, 2011 at 6:00 PM, Stephen F. Booth <me@sbooth.org> wrote:
> I've also run into crashes like this in the past, when I tried to realize
> speed increases by parsing several files simultaneously in separate threads.
>  It seems that if atomic increment/decrement were added to RefCounter, as
> long as a single file wasn't shared across threads then STL thread safety
> wouldn't be an issue.  I'm not sure which statics could affect this, as I
> haven't looked through the code in a while.  Is thread safety (or some level
> of it) something planned for a future release?

I don't think thread-safe TagLib is a particularly good idea. It would
cause too many speed penalties for no good reason. I definitely want
to be able to call different instances of TagLib classes from
different threads though. I believe that fixing the RefCounter should
be the only thing that is needed. The other static instances are
read-only, as far as I remember.

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