The attached patch allows you to obtain the number of events
for a watcher that are still in the event queue. It also removes
unwanted ;'s from the typemap.
The situation where I have used this to force an event to
happen, unless I know one is already pending. eg
$idle = Event->idle( cb => sub {
On Fri, Feb 04, 2000 at 11:46:29AM +, [EMAIL PROTECTED] wrote:
> $ perl -MEvent -e 'require Event::Watcher; system("ps l $$"); require "Event/$_.pm"
>for (qw(idle inactivity io signal timer var)); system("ps l $$");'
> F UID PID PPID PRI NI VSZ RSS WCHAN STAT TTYTIME COMM
On Thu, Feb 03, 2000 at 11:44:14PM -0800, [EMAIL PROTECTED] wrote:
> If I make the small change of putting the line
>
> use Test; plan test => 1;
>
> above the Use Event lines, as it is in the other tests, the module will now pass
>test.
>
> The version from CPAN puts the use Test line beneath
On Thu, Feb 03, 2000 at 03:06:48PM -0500, Joshua Pritikin wrote:
> On Thu, Feb 03, 2000 at 02:38:27PM -0500, [EMAIL PROTECTED] wrote:
> > in Event.pm have stub subs like this which only load the real one and
> > overload the sub's typeglob.
> >
> > sub Event::io {
> >
> > require 'Event/io.p