bug-gnustep
[Top][All Lists]
Advanced

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

Re: Recent drawing optimizations


From: Richard Frith-Macdonald
Subject: Re: Recent drawing optimizations
Date: Tue, 1 Apr 2003 17:58:41 +0100


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.





reply via email to

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