Date: Tue, 15 Feb 2000 07:58:33 +0900 From: OKAZAKI Tetsurou <okazaki@be.to> To: mark@ukug.uk.freebsd.org Cc: cpiazza@jaxon.net, bsletten@nova.org, ports@FreeBSD.ORG Subject: Re: xmms-1.0.1 "runs slow" Message-ID: <86900n8k86.wl@dolphin.be.to> In-Reply-To: <20000214182907.B333@marder-1> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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. -- Tetsurou 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?86900n8k86.wl>