Commits
- Commit:
01312690395c48635d8351d1cfd16dfe35495394
- From:
- Omar Polo <op@omarpolo.com>
- Date:
ev: inline use nullable *opaque instead of ev::any
ev::any was just to save some typing; not sure it's worth it. Can be
easily confused with ev::READ and ev::WRITE.
- Commit:
f2f593e9c4e9a188cfb78deb501cdaae2d1a3134
- From:
- Omar Polo <op@omarpolo.com>
- Date:
ev: use def instead of const for globals
I actually don't get the difference between def and const. maybe def
is guaranteed to be a compile-time constant (just guessing). Other
"#defines" in the hare stdlib seem to use def tho, so follow here too.
- Commit:
e9feffee9feb21519f324d13b201c31acf79b31d
- From:
- Omar Polo <op@omarpolo.com>
- Date:
ev: use two queues
avoids issues with adding/removing elements from the 'working' queue.
ev::add and ev::del only touch the "wip" queue, while poll only
touches the "working" queue.
This technically has the consequences that if from event A we remove
event B which is pending and not yet processed, we may still fire B
once.
- Commit:
d4bd39d8927c67a76bb2e9d330d4ae51e3d3a6b9
- From:
- Omar Polo <op@omarpolo.com>
- Date:
ev: process all the events
This was intended as an optimization: poll returns the number of
elements in the pollfd set which had events. Can be revised in the
future.
- Commit:
2bc5ec6b9ae06cefe3454562c1fffd520ba52bcb
- From:
- Omar Polo <op@omarpolo.com>
- Date:
initial import