hurd-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: malloc and portable pthreads


From: Thomas Bushnell, BSG
Subject: Re: malloc and portable pthreads
Date: 24 Jan 2002 15:30:38 -0800
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1

Marcus Brinkmann <address@hidden> writes:

> pthread code needs malloc in one or two places.  Some of those are entirely
> generic (pthreads/), some in sysdeps/generic.
> 
> The Hurd provides its own malloc which is thread safe.  Do other systems
> something similar?  How would a portable thread encapsulate this?

A pthread implementation is required to make sure malloc is thread
safe.  Typically the malloc implementation is going to acquire locks
and stuff.

> Is this the best place for such questions?  It reaches Roland, Thomas and
> Mark, which is good enough for me :)  but maybe some glibc list would be
> better.  libc-alpha?  Had quite a lot of noise lately ;)

This is a fine place to have the discussion, but libc-alpha is
probably better.

Thomas



reply via email to

[Prev in Thread] Current Thread [Next in Thread]