Article

From:
To:
Remy Lebeau (TeamB)
Subject:
Re: Thread safety with UnicodeString type [Edit]
Newsgroup:
embarcadero.public.cppbuilder.language.cpp

Re: Thread safety with UnicodeString type [Edit]

> {quote:title=Remy Lebeau (TeamB) wrote:}{quote}
> UnicodeString reference counting will work just fine.  You don't have to 
> worry about protecting it.

Does this mean that reference counting increase/decrease is thread-safe (or perhaps atomic operation?) even though the actual UnicodeString data payload management isn't? I did test accessing data from 2 threads when it was being written from one and read from another and I do get access violation so it doesn't seem thread safe, and it is kind of odd to me that reference counting is exception to that. And does this depend on version of C++ Builder (I use 2010 version)?
FYI: Phrase searches are enclosed in either single or double quotes
 
 
Originally created by
Tamarack Associates
Thu, 14 Nov 2024 17:19:33 UTC
Copyright © 2009-2024
HREF Tools Corp.