[vorbis-dev] Re: Possible fix for bug #14 (ogg123 -b memory leak)
Kenneth Arnold
ken at arnoldnet.net
Sun May 13 13:37:54 PDT 2001
On Sun, May 13, 2001 at 06:58:33PM +0000, Christian Weisgerber wrote:
> Kenneth Arnold <ken at arnoldnet.net> wrote:
>
> > Or (to all...) is pthreads portable enough to make the writer a thread
> > instead of a process?
>
> Reliance on pthreads is becoming the #1 problem for porting Linux-
> centric software to BSD. Whether that is due to broken threads
> implementations or general portability problems, I don't know.
Seeing Jack's reply to this, and not having any BSD handy to look at
things on, I'll have to let you two argue on that subject. But
shouldn't a working pthreads be generally a prerequisite for the Linux
emulation layer that the BSDs tout?
> You must be joking.
> Some time ago I contributed a patch that replaces the use of sysvshm
> with mmap() sharing. That should be available on all likely target
> platforms. It's already used in the official FreeBSD and OpenBSD
> ports of vorbis-tools.
I had heard of pthreads working on a lot of things, and was going to
go dig up your exact patch when I remembered pthreads. Doing the
writer as a thread instead of a child process would be much more clean
IMHO, but if there really are portability problems with doing it as a
thread, I won't (or maybe #ifdef or conditionally compile a threaded
implementation for those platforms that support pthreads, but that
gets messy quickly).
--
Kenneth Arnold <ken at arnoldnet.net> / kcarnold / Linux user #180115
http://arnoldnet.net/~kcarnold/
<HR NOSHADE>
<UL>
<LI>application/pgp-signature attachment: stored
</UL>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: part
Type: application/octet-stream
Size: 233 bytes
Desc: not available
Url : http://lists.xiph.org/pipermail/vorbis-dev/attachments/20010513/3db80745/part.obj
More information about the Vorbis-dev
mailing list