Re: Thread question

2011-03-07 Thread Philippe Roussel
Hi Le samedi 05 mars 2011 à 17:06 +, Richard Frith-Macdonald a écrit : I added a configure-time check in gnustep-base to detect objc runtime libraries which don't support +initialise properly and warn about them. I also added a run-time alert to be printed if a program becomes

Re: Thread question

2011-03-07 Thread Richard Frith-Macdonald
On 7 Mar 2011, at 09:04, Philippe Roussel wrote: Hi Le samedi 05 mars 2011 à 17:06 +, Richard Frith-Macdonald a écrit : I added a configure-time check in gnustep-base to detect objc runtime libraries which don't support +initialise properly and warn about them. I also added a

Re: Thread question

2011-03-07 Thread Philippe Roussel
[Adding Daving to Cc] Le lundi 07 mars 2011 à 09:28 +, Richard Frith-Macdonald a écrit : On 7 Mar 2011, at 09:04, Philippe Roussel wrote: Hi Le samedi 05 mars 2011 à 17:06 +, Richard Frith-Macdonald a écrit : I added a configure-time check in gnustep-base to detect objc

Re: Thread question

2011-03-07 Thread Philippe Roussel
Le lundi 07 mars 2011 à 11:16 +0100, Philippe Roussel a écrit : [Adding Daving to Cc] Sorry David ___ Gnustep-dev mailing list Gnustep-dev@gnu.org http://lists.gnu.org/mailman/listinfo/gnustep-dev

Re: Thread question

2011-03-07 Thread Richard Frith-Macdonald
On 7 Mar 2011, at 10:37, Philippe Roussel wrote: Le lundi 07 mars 2011 à 11:16 +0100, Philippe Roussel a écrit : [Adding Daving to Cc] Sorry David I think this is a test bug ... needed to use volatile variables so that changes made by one thread would be noticed by others.

Re: Thread question

2011-03-07 Thread Philippe Roussel
Le lundi 07 mars 2011 à 10:49 +, Richard Frith-Macdonald a écrit : On 7 Mar 2011, at 10:37, Philippe Roussel wrote: Le lundi 07 mars 2011 à 11:16 +0100, Philippe Roussel a écrit : [Adding Daving to Cc] Sorry David I think this is a test bug ... needed to use volatile

Re: Thread question

2011-03-05 Thread Richard Frith-Macdonald
On 4 Mar 2011, at 18:24, Banlu Kemiyatorn wrote: On Sat, Mar 5, 2011 at 1:03 AM, Richard Frith-Macdonald rich...@tiptree.demon.co.uk wrote: Thanks! I switched to GNUstep objc runtime now and the problem is gone. Thank you Richard and David. I suspect that what you have run into here is

Re: Thread question

2011-03-04 Thread Banlu Kemiyatorn
On Wed, Mar 2, 2011 at 1:24 PM, Richard Frith-Macdonald rich...@tiptree.demon.co.uk wrote: On 2 Mar 2011, at 06:21, Richard Frith-Macdonald wrote: OK ... that should build and run for you (and does for me) without trouble. If it usually works, but fails, rarely, I guess there might be some

Re: Thread question

2011-03-04 Thread Richard Frith-Macdonald
On 4 Mar 2011, at 14:54, Banlu Kemiyatorn wrote: On Wed, Mar 2, 2011 at 1:24 PM, Richard Frith-Macdonald rich...@tiptree.demon.co.uk wrote: On 2 Mar 2011, at 06:21, Richard Frith-Macdonald wrote: OK ... that should build and run for you (and does for me) without trouble. If it

Re: Thread question

2011-03-04 Thread Banlu Kemiyatorn
On Sat, Mar 5, 2011 at 1:03 AM, Richard Frith-Macdonald rich...@tiptree.demon.co.uk wrote: Thanks! I switched to GNUstep objc runtime now and the problem is gone. Thank you Richard and David. I suspect that what you have run into here is a bug in the gnu Objective-C runtime. You have two

Re: Thread question

2011-03-01 Thread Richard Frith-Macdonald
On 1 Mar 2011, at 20:04, Banlu Kemiyatorn wrote: Hi, sorry, just delete a couple lines of code, was trying to get mail shorter, here's the complete code #include unistd.h #import Foundation/Foundation.h @interface MyObj:NSObject @end @implementation MyObj - (void) launch { //

Re: Thread question

2011-03-01 Thread Richard Frith-Macdonald
On 2 Mar 2011, at 06:21, Richard Frith-Macdonald wrote: OK ... that should build and run for you (and does for me) without trouble. If it usually works, but fails, rarely, I guess there might be some race condition in gnustep-base (but from looking at the source I can't see how that