discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GNUstep-gui make problems (linking pthreads)


From: Banlu Kemiyatorn
Subject: Re: GNUstep-gui make problems (linking pthreads)
Date: Tue, 01 Apr 2003 22:41:54 +0700
User-agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.3) Gecko/20030312




No it wouldn't be as the code doing the sorting has no way of knowing that 'self' (a variable) has become obsolete. I think you will probably need a custom subclass of NSArray which implements an invalidatin mechanism a sorting routine which uses it.

I was thinking I can use a global flag and the main thread can mark the flag to let the array know it is obsolete (but may be it's dirty?) and so the compare method (in member instances) know it is obsolete.


> Perhaps you could sort using a function rather than the selector, and provide a mechanism for that function > to tell that sorting should be aborted (upon which it could cause the thread to exit).

very thanks!








reply via email to

[Prev in Thread] Current Thread [Next in Thread]