[prev in list] [next in list] [prev in thread] [next in thread] 

List:       fvwm95
Subject:    Re: [FVWM95] [XClass95]
From:       Jeroen van der Zijp <jvz () cyberia ! cfdrc ! com>
Date:       1997-10-16 7:59:41
[Download RAW message or body]

> 2.  I am trying to use libpthread to write a program for XClass95, and 
> have the following setup..
> 
> The XClass program launches a MainFrame, and creates a window.  The user
> selects a db query, and the program launches a thread (now a dummy, but 
> soon to return a database table from MySQL).  
> 
> ANyhow, I compiled the thing normaly, and all works hunky-dory.  I go to 
> add a thread in, and bang-- crash!
> 
> SO I use a small X program which opens up a X11 window and draws a 
> sphere, and modify it to add a thread to calculate at the same time as 
> the draw, and notify the draw of the new calc.
> 
> XIO:  fatal IO error 2 (Unknown error) on X server ":0.0"
>       after 36 requests (7 known processed) with 0 events remaining.
> 
> BANG.  In fact even the most trivial program with no thread, but has 
> libpthreads referenced in the ELF, dies.  Any clues?

1) You need GNU libc, it's (supposed to be) multi-thread safe.

2) You need to have compiled libX etc in thread-safe mode.

3) If non of the above applies to you, be extremely careful with library
   calls from your threads...

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic