Date: Wed, 9 Jul 2003 12:41:33 -0400 (EDT) From: Daniel Eischen <eischen@vigrid.com> To: Kai Mosebach <kai.mosebach@freshx.de> Cc: freebsd-threads@freebsd.org Subject: Re: LinuxThreads replacement Message-ID: <Pine.GSO.4.10.10307091234350.3409-100000@pcnet5.pcnet.com> In-Reply-To: <001a01c34637$c7bca340$0100a8c0@alpha>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 9 Jul 2003, Kai Mosebach wrote: > Hi, > > can libthr / libkse easily be used as a liblthreads (LinuxThreads) > replacement ? I would doubt that you'd be able to copy (or use libmap.conf) libthr/libkse over liblthreads. I suspect that the mutex types (and perhaps others) may be implemented differently so that their sizes are incompatible. For instance, if linuxthreads defines pthread_mutex_t as a struct, that wouldn't work when FreeBSD defines them to be pointers to structs. Actually, maybe that would work since the FreeBSD types are not greater in size. But there are other possible problems -- pthread_cleanup_push() implemented as macros in linuxthreads for one. On the other hand, if you want to recompile something that currently uses linuxthreads, it should work using one of our thread libraries. -- Dan Eischen
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.10.10307091234350.3409-100000>