From owner-freebsd-threads@FreeBSD.ORG Wed Jul 9 09:41:37 2003 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 08DD437B401 for ; Wed, 9 Jul 2003 09:41:37 -0700 (PDT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4AC1343F3F for ; Wed, 9 Jul 2003 09:41:36 -0700 (PDT) (envelope-from eischen@vigrid.com) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mail.pcnet.com (8.12.8/8.12.1) with ESMTP id h69GfXAI004397; Wed, 9 Jul 2003 12:41:33 -0400 (EDT) Date: Wed, 9 Jul 2003 12:41:33 -0400 (EDT) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Kai Mosebach In-Reply-To: <001a01c34637$c7bca340$0100a8c0@alpha> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-threads@freebsd.org Subject: Re: LinuxThreads replacement X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: deischen@freebsd.org List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jul 2003 16:41:37 -0000 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