use CONSTANT: in epoll

db4
Doug Coleman 2009-11-21 20:56:39 -06:00
parent 0612bc6177
commit 3a90db03c6
1 changed files with 3 additions and 4 deletions

View 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