Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Feb 2000 00:05:51 +0000
From:      Mark Ovens <mark@ukug.uk.freebsd.org>
To:        OKAZAKI Tetsurou <okazaki@be.to>
Cc:        cpiazza@jaxon.net, bsletten@nova.org, ports@FreeBSD.ORG
Subject:   Re: xmms-1.0.1 "runs slow"
Message-ID:  <20000215000551.A89205@marder-1>
In-Reply-To: <86900n8k86.wl@dolphin.be.to>
References:  <20000213231258.B826@marder-1> <Pine.GSO.4.21.0002131815290.24230-100000@members.fcac.org> <20000214003909.B328@marder-1> <20000213180447.C9728@norn.ca.eu.org> <20000214182907.B333@marder-1> <86900n8k86.wl@dolphin.be.to>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Feb 15, 2000 at 07:58:33AM +0900, OKAZAKI Tetsurou wrote:
> In the message <20000214182907.B333@marder-1> 
> Mark Ovens <mark@ukug.uk.freebsd.org> wrote:
> 
> > On Sun, Feb 13, 2000 at 06:04:47PM -0800, Chris Piazza wrote:
> > > 
> > > If you build X from ports it will create a thread-safe Xlib... every
> > > machine I've tested this on had it (and also had no problems) so that 
> > > may very well be the problem.
> > > 
> 
> > Well, I built XFree86 3.3.5 from the ports with no special flags etc.
> > Is there anyway I can check that my Xlibs are thread-safe? The fact
> > that xmms 0.9.5 worked fine suggests that they are, doesn't it?
> 
> The XInitThreads(3X11) function is used to check the MT-safeness of
> the Xlib. For a example, prepare a simple test program:
> 
> #include <stdio.h>
> #include <X11/Xlib.h>
> 
> int main()
> {
>         Display *d = XOpenDisplay(NULL);
>         int status;
>         status = XInitThreads();
>         printf("%d\n", status);
>         XCloseDisplay(d);
>         exit(status);
> }
> 
> as xinitthreads.c and compile it as follows.
> 
> % cc -D_THREAD_SAFE -D_REENTRANT -I/usr/X11R6/include xinitthreads.c \
>   -L/usr/X11R6/lib -lX11 -pthread
> 
> If running ./a.out prints a non-zero number, your Xlibs are MT-safe.
> 

Thanks. I have upgraded XFree86 to 3.3.6, tried your program and it
returns 1, so everything is fine but xmms sill displays the same
problems :(


> -- 
> Tetsurou

-- 
	Microsoft: Where do you want to go today?
	Linux:     Where do you want to go tomorrow?
	BSD:       Are you guys coming, or what?
			              -Poster at LinuxWorld 2000
________________________________________________________________
      FreeBSD - The Power To Serve http://www.freebsd.org
      My Webpage http://ukug.uk.freebsd.org/~mark/
mailto:mark@ukug.uk.freebsd.org             http://www.radan.com



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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