2008/8/6 Micha Nelissen <[EMAIL PROTECTED]>:
> Inoussa OUEDRAOGO wrote:
>> Hi,
>>
>> TAVLTree in avl_tree.pp is not thread safe due to the node
>> allocation and de-allocation done through the global
>> declared "NodeMemManager" variable. TAVLTreeNodeMemManager
>> implementation is cleary not thread safe, which btw IMHO
>> is a good thing ( for performance reason).
>
> Perhaps another option is to remove the NodeMemManager altogether and
> simply use GetMem/FreeMem (or New/Dispose)?

The second proposition contains a default TAVLTree that remove the node
mem manager and TAVLManagedTree that has a node mem manager for
people who do need it that way.

-- 
Inoussa O.
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to