This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


> > ...  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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]