public inbox for frysk@sourceware.org
 help / color / mirror / Atom feed
* waitpid event-loop enabled
@ 2007-04-09 18:19 Andrew Cagney
  2007-04-09 19:44 ` Phil Muldoon
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Cagney @ 2007-04-09 18:19 UTC (permalink / raw)
  To: frysk

FYI,

I've turned on the new event loop.

The one outstanding issue - stray waitpid events - was tracked down to 
the linux kernel and how it provides two waitpid notifications for a 
termination - one for the parent and one for the attached process.

Andrew

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: waitpid event-loop enabled
  2007-04-09 18:19 waitpid event-loop enabled Andrew Cagney
@ 2007-04-09 19:44 ` Phil Muldoon
  2007-04-09 21:07   ` Andrew Cagney
  0 siblings, 1 reply; 3+ messages in thread
From: Phil Muldoon @ 2007-04-09 19:44 UTC (permalink / raw)
  To: Andrew Cagney; +Cc: frysk

Andrew Cagney wrote:
> FYI,
>
> I've turned on the new event loop.

Some questions:

How does this differ from the old eventloop?

and


Does this affect any existing usage of eventloops? Two scenarios here:

1) The Frysk UI asks for eventloop refreshes every 3 second in a 
different Java thread

2) LinuxCoreFileHost takes an eventloop as a parameter and schedules 
(among other things) a refresh inside that eventloop?

Regards

Phil

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: waitpid event-loop enabled
  2007-04-09 19:44 ` Phil Muldoon
@ 2007-04-09 21:07   ` Andrew Cagney
  0 siblings, 0 replies; 3+ messages in thread
From: Andrew Cagney @ 2007-04-09 21:07 UTC (permalink / raw)
  To: Phil Muldoon; +Cc: frysk

Phil,

Good questions.  Functionally, the new event-loop does not differ from 
the old, they both implement the public methods defined in 
frysk.event.EventLoop which includes support for timers and the 
execution of requests.  Testing shows no difference in results between 
the two.  The code you mention would use those interfaces.

Internally, the new code is very different though.  Instead of using 
select for timeout and SIGCHILD to detect a waitpid event, it uses 
SIGALRM for timeouts and waitpid to detect a waitpid event.  This means 
that the new code is 100% insulated from SIGCHLD/WAITPID changes.

Andrew

Phil Muldoon wrote:
> Andrew Cagney wrote:
>> FYI,
>>
>> I've turned on the new event loop.
>
> Some questions:
>
> How does this differ from the old eventloop?


>
> and
>
>
> Does this affect any existing usage of eventloops? Two scenarios here:
>
> 1) The Frysk UI asks for eventloop refreshes every 3 second in a 
> different Java thread
>
> 2) LinuxCoreFileHost takes an eventloop as a parameter and schedules 
> (among other things) a refresh inside that eventloop?
>
> Regards
>
> Phil

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-04-09 21:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-09 18:19 waitpid event-loop enabled Andrew Cagney
2007-04-09 19:44 ` Phil Muldoon
2007-04-09 21:07   ` Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).