[991] in BarnOwl Developers

home help back first fref pref prev next nref lref last post

[D-O-H] r978 - trunk/owl

daemon@ATHENA.MIT.EDU (nelhage@MIT.EDU)
Thu Oct 29 18:11:55 2009

Resent-From: nelhage@mit.edu
Resent-To: barnowl-dev-mtg@charon.mit.edu
X-Original-To: nelhage@nelhage.com
To: dirty-owl-hackers@mit.edu
From: nelhage@MIT.EDU
Reply-to: dirty-owl-hackers@MIT.EDU
Date: Sat,  1 Mar 2008 19:29:55 -0500 (EST)

Author: nelhage
Date: 2008-03-01 19:29:54 -0500 (Sat, 01 Mar 2008)
New Revision: 978

Modified:
   trunk/owl/perlwrap.pm
Log:
Update perlwrap.pm documentation for the select() BarnOwl


Modified: trunk/owl/perlwrap.pm
===================================================================
--- trunk/owl/perlwrap.pm	2008-03-01 23:44:04 UTC (rev 977)
+++ trunk/owl/perlwrap.pm	2008-03-02 00:29:54 UTC (rev 978)
@@ -122,6 +122,16 @@
 
 Returns the number of colors this BarnOwl is capable of displaying
 
+=head2 add_dispatch FD CALLBACK
+
+Adds a file descriptor to C<BarnOwl>'s internal C<select()>
+loop. C<CALLBACK> will be invoked whenever data is available to be
+read from C<FD>.
+
+=head2 remove_dispatch FD
+
+Remove a file descriptor previously registered via C<add_dispatch>
+
 =cut
 
 
@@ -651,9 +661,9 @@
 
 =item $mainLoop
 
-Called on B<every pass> through the C<BarnOwl> main loop. Any
-functions with this hook should be very cheap, as they are very
-frequently by the runtime.
+Called on every pass through the C<BarnOwl> main loop. This is
+guaranteed to be called at least once/sec and may be called more
+frequently.
 
 =item $getBuddyList
 


home help back first fref pref prev next nref lref last post