mirror of
https://github.com/troglobit/libuev.git
synced 2026-11-17 19:31:18 +00:00
uev_run() with only UEV_NONBLOCK never returns when there are watchers
but no events, it spins at full CPU load:
uev_run(ctx, UEV_NONBLOCK);
The loop polls epoll with a zero timeout and only stops on UEV_ONCE.
Leave the loop when a nonblocking poll finds no events.
23 lines
619 B
Makefile
23 lines
619 B
Makefile
EXTRA_DIST = check.h
|
|
CLEANFILES = *~ *.trs *.log
|
|
AM_CFLAGS = -W -Wall -Wextra -Wno-unused-result -Wno-unused-parameter
|
|
AM_CPPFLAGS = -D_GNU_SOURCE -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64
|
|
AM_LDFLAGS = -L../src ../src/libuev.la
|
|
|
|
TESTS =
|
|
TESTS += active
|
|
TESTS += api
|
|
TESTS += complete
|
|
TESTS += cronrun
|
|
TESTS += cronstart
|
|
TESTS += error
|
|
TESTS += io
|
|
TESTS += nonblock
|
|
TESTS += resume
|
|
TESTS += signal
|
|
TESTS += stdin
|
|
TESTS += timer
|
|
TESTS += event
|
|
|
|
check_PROGRAMS = $(TESTS)
|