-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* The struct was getting constructed properly, but it was being wiped out when returned because it local to the function. Now it gets calculated inside a dedicated function `kqueue_wait` that is colocated with the `kevent` call. This fixes an issue where the timeout is always 0 and constantly returns triggering tons of thread activity * `kqueue` specific code for creation and unregistering have also been moved to their own functions, `kqueue_create` and `kqueue_unregister_waiting`, for code clarity * Like the change from `kq_fd` to `event_fd`, `kq_wait` has been changed to `event_wait` to distance the naming from the `kqueue` function
- Loading branch information
Showing
1 changed file
with
79 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters