]> gitweb.factorcode.org Git - factor.git/commitdiff
use CONSTANT: in epoll
authorDoug Coleman <doug.coleman@gmail.com>
Sun, 22 Nov 2009 02:56:39 +0000 (20:56 -0600)
committerDoug Coleman <doug.coleman@gmail.com>
Sun, 22 Nov 2009 02:56:39 +0000 (20:56 -0600)
basis/io/backend/unix/multiplexers/epoll/epoll.factor

index 3985729935dd95099828e546e33b94874a282fb3..6ec8caaad8e2def161071f4b291013421cfc7be0 100644 (file)
@@ -9,10 +9,9 @@ IN: io.backend.unix.multiplexers.epoll
 
 TUPLE: epoll-mx < mx events ;
 
-: max-events ( -- n )
-    #! We read up to 256 events at a time. This is an arbitrary
-    #! constant...
-    256 ; inline
+#! We read up to 256 events at a time. This is an arbitrary
+#! constant...
+CONSTANT: max-events 256
 
 : <epoll-mx> ( -- mx )
     epoll-mx new-mx