Skip to content
Commit 60a8d29a authored by Manuel Stoeckl's avatar Manuel Stoeckl Committed by Simon Ser
Browse files

event-loop: Track timer event sources in userspace



libwayland now uses only one file descriptor to keep track of all
the timer event sources associated with an event loop. An array-based
binary heap is used to determine which event source has the earliest
deadline.

(Previously, each timer event source had its own timerfd, making it easy
for the a process using many timer event sources to run out of file
descriptors.)

Signed-off-by: default avatarManuel Stoeckl <code@mstoeckl.com>
parent 75d14834
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment