This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Re: [!] Pthread-specific node allocator. Storage leak?
- To: libstdc++ at sourceware dot cygnus dot com
- Subject: Re: [!] Pthread-specific node allocator. Storage leak?
- From: Benjamin Kosnik <bkoz at cygnus dot com>
- Date: Tue, 25 Apr 2000 19:22:31 -0700 (PDT)
> > ... 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