Skip to content
  • Manuel Stoeckl's avatar
    event-loop: Track timer event sources in userspace · 60a8d29a
    Manuel Stoeckl authored and Simon Ser's avatar Simon Ser committed
    
    
    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>
    60a8d29a