On Tuesday, April 1, 2003, at 05:24 pm, David Ayers wrote:


I couldn't a way to really assert this, but instread of assuming that initialize_gnustep_backend() is called from the default thread, maybe a helper method which sets the the currentThread to the default thread could be invoked here by using performSelectorOnMainThread:withObject:waitUntilDone:

I did something like that to ensure that NSApp is initialised in the main thread. I think it's probably important to know that the drawing thread is the same as the main thread.

I don't think there is much point recording the actual thread ...
sure we could then test to see if the current thread is the one we
can draw in, but we can effectively do that by testing to see if the
current graphics context (GSCurrentContext()) is nil anyway.



_______________________________________________
Bug-gnustep mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to