-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: Add new custom event loop for Linux I/O layer
Introduce ev.h and ev.c, establishing the foundation for the new custom event loop, `pgagroal_ev`. Replace previous dependencies on libev with the custom event loop. Implement support for io_uring with a fallback to epoll if io_uring is unavailable.
- Loading branch information
Showing
18 changed files
with
2,476 additions
and
419 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 was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# - Try to find liburing | ||
# Once done this will define | ||
# LIBURING_FOUND - System has liburing | ||
# LIBURING_LIBRARY - The library needed to use liburing | ||
|
||
FIND_LIBRARY(LIBURING_LIBRARY NAMES liburing liburing.a liburing.so liburing.so.2 | ||
HINTS | ||
/usr/lib64 | ||
/usr/lib | ||
/lib64 | ||
/lib | ||
) | ||
|
||
IF (LIBURING_LIBRARY) | ||
SET(LIBURING_FOUND TRUE) | ||
ELSE () | ||
SET(LIBURING_FOUND FALSE) | ||
ENDIF () |
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
build_dir=$(pwd)/build | ||
mkdir -p $build_dir | ||
cd $build_dir | ||
rm -rf * | ||
cmake .. -DCMAKE_BUILD_TYPE=Debug --trace-expand source_dir | ||
make | ||
#rm ../compile_commands.json | ||
#ln -s $build_dir/compile_commands.json .. |
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.
45da25d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job, I have so far only a few aesthetics comments.