Commits
- Commit:
029a63f4cc2449a560a6ad36490f3ae27631bdca
- From:
- Omar Polo <op@omarpolo.com>
- Date:
compat.h: provide __dead
- Commit:
cc44e26db4154e11a027442878e1e34bc521e58e
- From:
- Omar Polo <op@omarpolo.com>
- Date:
ev: simplify heap management
make ev_timer always use the ``reserve'' space and heapify at the
start of the event loop tick. Bonus points for using the better
algorithm and remove the unused bubbleup.
- Commit:
c7ef47709b71c178743625c10feca9f7cf373b80
- From:
- Omar Polo <op@omarpolo.com>
- Date:
ev_timer_cancel: return -1 when not found
- Commit:
edaadfbc3f3aa875d02f68b858ac44b128898f79
- From:
- Omar Polo <op@omarpolo.com>
- Date:
ev: fix/improve cancel_timer and ev_timer_cancel
we only reach cancel_timer() for timers in the hap, so delete the
unreachable code, and improve what we have.
When deleting from the reserve space, just move the last element
in the place of the removed one, no need to move everything. It'll
be heapified later anyway.
- Commit:
04ffa662adc8ee1b45fcd633c519bbe21f78f93a
- From:
- Omar Polo <op@omarpolo.com>
- Date:
ev: fix corruption in bubbledown
tmp is of the wrong size, so we memcpy the wrong values. fun.
- Commit:
f47e9216ca57a589fd5c47edb614b7385bde87ae
- From:
- Omar Polo <op@omarpolo.com>
- Date:
ev: fix two off-by-one in bubbledown
- Commit:
a74e6b4d71a264f0ca2fd27e25b1acfb811508fc
- From:
- Omar Polo <op@omarpolo.com>
- Date:
reset timer id after cancelling it
- Commit:
99ebdacbeb6a98bb61e227c3239dd47de5f36b06
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add a paranoic check
- Commit:
cc300b254acac91d7a531e5305c3bc681fb3871d
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add missing return
otherwise we try to reschedule the socket we've just closed.
- Commit:
2a265e0eec98e8b6cc201b8e932d744072cff951
- From:
- Omar Polo <op@omarpolo.com>
- Date:
sync changelog
- Commit:
64d120d0707414598101924d540bb8fd564877ca
- From:
- Omar Polo <op@omarpolo.com>
- Date:
remove the libevent check
- Commit:
98d3e6c172747dc58042bde09a848d3e03572934
- From:
- Omar Polo <op@omarpolo.com>
- Date:
convert telescope to use ev instead of libevent
libevent is a very cool library, I like the APIs and enjoy using
it. However, telescope is not as large and doesn't have as many
file descriptor, so libevent is quite ``too big'' for our needs.
ev started as a small event loop on top of poll(2) for amused, and
can be used here too, it just needed to grow the ability to handle
several timers, as we need quite some on telescope (in fact, we use
more timers than fds!)
- Commit:
b19b8dbca985e2f567bb3f476b116ea18c1ca9a2
- From:
- Omar Polo <op@omarpolo.com>
- Date:
bufio: add bufio_drain()
- Commit:
0e0994b2df05d5286a0b1d7fec24819ce2845588
- From:
- Omar Polo <op@omarpolo.com>
- Date:
bufio: add bufio_handshake to control the TLS handshake
- Commit:
e634cfa6578c0a2950abf661c07c899201b50925
- From:
- Omar Polo <op@omarpolo.com>
- Date:
bufio: fix bufio_read for TLS