Re: is Event the best event loop module?

[email protected] (Uri Guttman)
Newsgroups perl.loop
Message-ID <[email protected].>
>>>>> "NI" == Nick Ing-Simmons <[email protected]> writes:

  NI> The way I have seen this fixed is to have signal handler write()
  NI> to a pipe that is in the select() list rather than just set a flag.

that is a great solution. i did something very similar to manage a set
of worker thread doing blocking operations. the main thread wrote a
pointer to a pipe and the threads all blocked trying to read it. one
successfully would read it and do work. when done, it would write the
pointer back to the pipe (other direction) and then the select would
handle the main thread side. works beautifully.

we should do something like that for the new event loop/perl6.

uri

-- 
Uri Guttman  ---------  [email protected]  ----------  http://www.sysarch.com
SYStems ARCHitecture and Stem Development ------ http://www.stemsystems.com
Learn Advanced Object Oriented Perl from Damian Conway - Boston, July 10-11
Class and Registration info:     http://www.sysarch.com/perl/OOP_class.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.