Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Dec 2009 10:18:02 +0100
From:      Gary Jennejohn <gary.jennejohn@freenet.de>
To:        leon zadorin <leonleon77@gmail.com>
Cc:        freebsd-threads@freebsd.org
Subject:   Re: disable threads when recompiling libc
Message-ID:  <20091221101802.579f6179@ernst.jennejohn.org>
In-Reply-To: <26d2cb010912202315g574353d9g872643d1717f4f86@mail.gmail.com>
References:  <26d2cb010912202315g574353d9g872643d1717f4f86@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 21 Dec 2009 18:15:13 +1100
leon zadorin <leonleon77@gmail.com> wrote:

> is it possible to configure libc to be recompiled in a single-threaded
> model only (i.e. disable any additional overhead for handling
> thread-safety).
> 

There doesn't seem to be any simple way to do this.  libc uses pthread.h
and PTHREAD macros all over the place.

However, libc routines seem to test __isthreaded to avoid unnecessary
calls to thread operations.

---
Gary Jennejohn



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091221101802.579f6179>