Subject: Re: ThreadedX patch, take 2
To: Jason R Thorpe <thorpej@wasabisystems.com>
From: Valeriy E. Ushakov <uwe@ptc.spbu.ru>
List: tech-userlevel
Date: 01/20/2003 12:47:23
On Mon, Jan 20, 2003 at 01:08:01 -0800, Jason R Thorpe wrote:
[...]
> > ico.o(.text+0x20d5): undefined reference to `pthread_mutex_unlock'
> > *** Error code 1 (continuing)
>
> Ah, I see what's happening here... It's using the Xthreads header file
> as a way to actually get the thread API for the program.
>
> This is Just Wrong. As far as I am aware, Xthreads.h is intended only
> (please correct me if I am wrong) for use in building thread-safe X
> libraries.
No. R6 Supplement claims in section 4.3, page 88, that X11/Xthreads.h
provides partial portable interface to thread primitives that programs
are encouraged to use instead of os-specific headers/functions to
increase portability.
SY, Uwe
--
uwe@ptc.spbu.ru | Zu Grunde kommen
http://www.ptc.spbu.ru/~uwe/ | Ist zu Grunde gehen