-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Group event loops under the
Crystal::EventLoop
namespace
The current event loops are scattered a bit everywhere, or buried inside `src/crystal/system/x` when they don't use the `Crystal::System` namespace. This patch groups all the implementations under `Crystal::EventLoop` in `src/crystal/event_loop`. Of course the actual system parts are kept in (or moved to) `Crystal::System`. - `Crystal::Evented::EventLoop` => `Crystal::EventLoop::Polling` (abstract) - `Crystal::Epoll::EventLoop` => `Crystal::EventLoop::Epoll` - `Crystal::Kqueue::EventLoop` => `Crystal::EventLoop::Kqueue` - `Crystal::LibEvent::EventLoop` => `Crystal::EventLoop::LibEvent` - `Crystal::IOCP::EventLoop` => `Crystal::EventLoop::IOCP` - `Crystal::IOCP` => `Crystal::System::IOCP` A new evloop, for example `io_uring`, would naturally be implemented as `Crystal::EventLoop::IoUring`.
- Loading branch information
1 parent
b87d3e8
commit c5bba26
Showing
29 changed files
with
253 additions
and
253 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
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
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
Oops, something went wrong.