17 Commits

Author SHA1 Message Date
leitner
75fe9a620e attempt to prevent future endless loops in io_wait half-closed fd
cleanup
2021-02-16 15:50:38 +00:00
leitner
b73a699dab reengineer alt queue handling to prevent race 2016-10-04 21:31:14 +00:00
leitner
f9570b38a1 attempt to work around race condition when you close an fd but there are
still outstanding events queued on it.
2016-10-04 20:38:04 +00:00
leitner
967e3ce019 revert edge triggering epoll; it had reliability and fairness issues and
was also not actually faster
2014-08-28 19:03:57 +00:00
leitner
5baf943f0a finish epoll move to edge triggering 2014-05-08 04:25:42 +00:00
leitner
a544abc39c switch io_fds from array to newly implemented (hopefully thread-safe) iarray
switch epoll from level triggering to edge triggering
2014-04-04 18:11:03 +00:00
leitner
e175800a8c add io_fd_canwrite (like io_fd but assume the fd is writable)
save a few syscalls here and there
2012-04-10 21:15:51 +00:00
leitner
c1c50c7dbd further Windoze support (test/io5.c works, gatling still doesn't)
This is just to get gatling to work, I may remove it again after
    that.
2005-09-09 22:12:23 +00:00
leitner
03461c6eb1 more defensive programming for SIGIO (*groan*) 2003-11-28 17:38:08 +00:00
leitner
543987da58 remove superfluous #includes
make it possibly to specify that a buffer should be freed
2003-10-31 23:34:40 +00:00
leitner
fcd6082250 did not compile on BSD after SIGIO fix 2003-10-22 12:52:40 +00:00
leitner
209fef467e Big Duh! _SIGIO and SIGIO look too close 2003-10-21 12:40:41 +00:00
leitner
ec060d6dee wrong fix 2003-10-21 12:37:49 +00:00
leitner
07a205405b Add DEBUG=1 to GNUmakefile
the epoll guard broke SIGIO
2003-10-21 12:31:14 +00:00
leitner
963fa817de guard against one descriptor being flagged twice 2003-10-19 16:38:31 +00:00
leitner
2a2e1ddc75 add sigio support
extend code to cope with edge triggered event notification
add io_eagain() so that you can notify io_wait if accept() returned EAGAIN
2003-09-12 22:03:51 +00:00
leitner
eb563422c8 add io_canread and io_canwrite 2003-09-05 22:59:58 +00:00