Interesting problem

Lethalman lethalman88 at gmail.com
Mon Jun 19 13:26:39 UTC 2006


GObject is the base object fo rall Gtk objects, however i solved using
setjmp/longjmp as wxSqueak do.

On 6/17/06, stéphane ducasse <ducasse at iam.unibe.ch> wrote:
> > (first sorry for my poor English)
> No problem :L) mine is bad too :)
> I read your blog :)
>
> > Hello,
> > i'm trying to solve problems with GObject signals but everytime i
> > get something not working as well.
>
> What is a GObject
>
> > Actually, i have a threaded gtk main loop. Since callbacks have
> > return values, and also because i have to wait before the squeak
> > side callback finish its work, i wait with something like a lock:
> >
> > while (callback->locked != 0);
> >
> > Now, Squeak process and the main loop are two different OS level
> > threads. When a callback is called it's registered into a queue and
> > a semaphore is signaled, Squeak then checks for callbacks and run
> > them. In the while, the C callback idles until callback->locked is
> > 1. This works as well when the signal is dispatched from the main
> > loop thread, when it's dispatched from Squeak it blocks everything.
> > What's the best way to handle this kind of problem? I tried to look
> > at wxSqueak but i really didn't realize how they solved this problem.
> >
> > Hoping for a reply, thanks you all.
> >
> > --
> > www.lethalman.net - Thoughts about internet technologies
> >
>
>
>


-- 
www.lethalman.net - Thoughts about computer technologies
squeakgtk.pbwiki.com - Searching for developers for Gtk on Smalltalk Squeak



More information about the Squeak-dev mailing list