[Top][All Lists]

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

Re: [Gnash-dev] ExternalEventCheck selects w/100us timeout

From: John Gilmore
Subject: Re: [Gnash-dev] ExternalEventCheck selects w/100us timeout
Date: Fri, 06 Aug 2010 13:56:17 -0700

> > If this code is called more frequently than that, it should probably
> > use the main select() loop (and create a main select() loop for the
> > framebuffer GUI, there are good reasons why every other GUI does this).
>   I'll think about for the framebuffer GUI post release, as I'll be
> doing other work to it. The problem with the main select loop is it's
> event based, and jumps to a callback. That way it gets ugly to access
> the movie_root data to make method calling, etc... actually work.
>   By being deep inside the movie_root advance, if there is a remote
> function, it's then easy to do something with it. Some of the other AS
> classes work the same way for the same reason.

Yeah, I'd have the main loop stuff just set a variable (either telling
us that there's data on that file descriptor, or actually reading in the
data and putting it in the variable).  Then in the movie_root advance,
you examine the variable and take action if set.


reply via email to

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