[!] Pthread-specific node allocator. Storage leak?

Benjamin Kosnik bkoz@cygnus.com
Tue Apr 25 19:22:00 GMT 2000


> > ...  If I use a queue<T> as a queue operations for a thread, 
> > it'll leak, and, in fact, this happens and is a
> > problem in practice.

Is this, in fact, the cast with libstdc++-v3?

these bits in bits/stl_config.h prevent (non-MT code) from using default 
alloc:

#   define __STL_USE_STD_ALLOCATORS 
#   define __USE_MALLOC // As the "underlying allocator"

you should probably see what allocators are being used for MT code. This 
may be a non-issue.

-benjamin



More information about the Libstdc++ mailing list