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

List:       taglib-devel
Subject:    Re: iterators+multithreading on win32
From:       Scott Wheeler <wheeler () kde ! org>
Date:       2011-03-05 10:37:11
Message-ID: 897F9BE2-D388-4257-BC62-732CA24402D3 () kde ! org
[Download RAW message or body]

On Mar 5, 2011, at 10:59 AM, Николай Шафоростов wrote:

> Hi. We're getting crashes when using taglib from different threads  
> (different files) on windows
> all of them are in the crt functions called from std iterators (e.g.  
> String's basic_string<ushort> iterator used in isLatin() methid, and  
> also ByteVector's iterators).
>
> The hypothesis is that std iterators are not thread-safe on win32.

No, that wouldn't fix the issue.  TagLib isn't thread-safe at all and  
shouldn't be used from multiple threads simultaneously The biggest  
barriers, off the top of my head, are the copy-on-write usage in the  
containers without atomic reference counters, various static  
initializers and the fact that none of the backing containers that it  
uses (std::foo) are thread-safe (on any platform).

-Scott
_______________________________________________
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