Thorsten Behrens wrote:
Jens-Heiner Rechtien <[EMAIL PROTECTED]> writes:

Well, but any reference counter increase/decrease still needs to be
atomic as long as they are not thread local? How can we replace them
with plain integer operations?

Hi Heiner,

well, when shared only within _one_ UTF2 thread-unsafe environment,
you don't need to explicitely make them atomic. But see below...

It is also the question whether calls to acquire and release across thread-safe/-unsafe boundaries should be guarded (like normal UNO method calls) or direct. For acquire, the combination of atomic acquire (how it is typically implemented by C++ UNO objects) and direct call would probably be fastest. For release, the problem is that many C++ UNO object implementations do nontrivial work in their destructors (which often is a bad thing, bad that is another story), so that release should better be guarded.

-Stephan

[...]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to