Skip to content
Commit 4fe309e4 authored by Manuel Stoeckl's avatar Manuel Stoeckl Committed by Héctor Orón Martínez
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 a4666c19
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