-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
make std.event.Loop work with --single-threaded #1908
Copy link
Copy link
Open
Labels
enhancementSolving this issue will likely involve adding new logic or components to the codebase.Solving this issue will likely involve adding new logic or components to the codebase.standard libraryThis issue involves writing Zig code for the standard library.This issue involves writing Zig code for the standard library.
Milestone
Metadata
Metadata
Assignees
Labels
enhancementSolving this issue will likely involve adding new logic or components to the codebase.Solving this issue will likely involve adding new logic or components to the codebase.standard libraryThis issue involves writing Zig code for the standard library.This issue involves writing Zig code for the standard library.
Type
Fields
Give feedbackNo fields configured for issues without a type.
See #1764 (comment)
On MacOS and FreeBSD it will be worth looking into whether kqueue works with file system operations.
When #1907 is implemented, it could be interesting to explore
io_submiton Linux instead of epoll, however even so, we would need another implementation for older linuxes that does not rely on a thread.This issue could potentially require a proposal to modify the single-threaded flag to work at some kind of scope level. Or it could potentially be resolved by making async file system functions actually be blocking in --single-threaded mode.