disable threads when recompiling libc

Gary Jennejohn gary.jennejohn at freenet.de
Mon Dec 21 09:18:05 UTC 2009


On Mon, 21 Dec 2009 18:15:13 +1100
leon zadorin <leonleon77 at 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


More information about the freebsd-threads mailing list