LinuxThreads replacement
Daniel Eischen
eischen at vigrid.com
Wed Jul 9 09:41:37 PDT 2003
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
More information about the freebsd-threads
mailing list