Subject: Re: CVS commit: src
To: None <>
From: Nathan J. Williams <>
List: tech-x11
Date: 01/23/2003 14:24:08
Jason R Thorpe <> writes:

> Module Name:	src
> Committed By:	thorpej
> Date:		Sun Jan 19 21:58:25 UTC 2003
> Modified Files:
> 	src/include: threadlib.h
> 	src/lib/libc/thread-stub: thread-stub.c
> 	src/lib/libpthread: pthread.c pthread_run.c
> Log Message:
> Add some threadlib stubs that are used by X:
> * thr_create() (stub in libc aborts)
> * thr_exit() (stub in libc calls exit())
> * thr_yield() (stub in libc does nothing)

(digging through the pile of mail about thread/sa issues)

This bothers me. thr_create() in particular is not a function that it
really makes sense to stub; something that wants to call that really
does want to be linked against a real pthreads library.

Is this a limitation of Xthreads, that there's no distinction between
building a thread-compatible library (with stubs that are only active
in the presence of threads) and a thread-using application (that
definitely wants thread functions)?

        - Nathan