Thread-Local Storage, C++ Support and SMP

Sebastian Huber sebastian.huber at embedded-brains.de
Fri Jul 5 16:35:29 UTC 2013


On 05/07/13 17:06, Gedare Bloom wrote:
>> I would do it as follows:
>> >
>> >Normal key objects which provide a tree root for key values (the thread ID
>> >is the tree key), e.g. no global tree.
>> >
> We chose not to do one tree per key, although I suppose we can
> revisit. I think I argued against it, but do not remember the reasons
> now. Maybe overhead, or complexity? I forget. I think it is not too
> hard to change to one Rbtree per Key Object.
>

Ok, this is not that important.  My thought was that a local tree may 
have benefits on SMP if we add fine grained locking.  There are so many 
SMP problems ahead, that this hardly matters now.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.




More information about the devel mailing list