Permalink
Browse files

Describe Event watchers to aid in debugging.

  • Loading branch information...
1 parent e454d70 commit a88524537da9af8f7480cccb3a18097611c3e3c5 @rcaputo committed Aug 8, 2009
Showing with 2 additions and 0 deletions.
  1. +2 −0 poe/lib/POE/Loop/Event.pm
View
2 poe/lib/POE/Loop/Event.pm
@@ -48,6 +48,7 @@ sub loop_initialize {
$_watcher_timer = Event->timer(
cb => \&_loop_event_callback,
+ desc => 'dispatch_timer',
after => 0,
);
}
@@ -111,6 +112,7 @@ sub loop_watch_filehandle {
$fileno_watcher[$fileno]->[$mode] = Event->io(
fd => $fileno,
+ desc => "io_watcher $handle $fileno",
poll => (
( $mode == MODE_RD )
? 'r'

0 comments on commit a885245

Please sign in to comment.