-
Notifications
You must be signed in to change notification settings - Fork 63
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
17 changed files
with
2,456 additions
and
376 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
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 -S .. -G "Unix Makefiles" -B . -DCMAKE_BUILD_TYPE=Debug | ||
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.