mirror of
https://github.com/troglobit/libuev.git
synced 2026-10-15 10:19:31 +00:00
e1b1daf5e3a7ecaa2352813d394ab50a845214b4
Simplifed uev_io_t by removing uev_io_rem_t completely. A refactor that would not have been possible without the BSD queue.h API. This makes the code readable and thus maintainable and less error prone. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
libuev - Asynchronous event loop library
The libuev library is a small event library in the style of the venerable Xt(3) event loop.
Basically an event context is created,and handlers for timeounts and stream events can be registered with this context.
After initial setup, the typical application will enter the event loop that will only return at program termination.
The C API
The typical application will do the following steps
- Create the event context with uev_ctx_create()
- Register callbacks with uev_io_create() and uev_timer_create()
- Enter the event loop with uev_run()
Building
Use make:
- make all: The library
- make test: Test and showcase
Installation
Is purely manual, but would be something along the lines of: sudo install -m 444 libuev.so.1 /usr/lib/libuev.so.1
Warning
Not thread safe!
The ctxt structure needs mutex protection in case of multi threaded access.
Description
Lightweight event loop library for Linux epoll() family APIs
Readme
MIT
972 KiB
0 Stars
1 Watchers
0 Forks
Languages
C
71.5%
M4
25%
Makefile
3.4%