1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

ev: check for IOURING

This commit is contained in:
Olivier Langlois 2020-02-21 07:59:09 +00:00 committed by Andy Green
parent 6bb116b8d8
commit 5d74cf668c
3 changed files with 12 additions and 1 deletions

View file

@ -968,6 +968,11 @@ if (LWS_WITH_LIBEV)
"#include <ev.h>
int main(int argc, char **argv) { return EVBACKEND_LINUXAIO; }
" LWS_HAVE_EVBACKEND_LINUXAIO)
CHECK_C_SOURCE_COMPILES(
"#include <ev.h>
int main(int argc, char **argv) { return EVBACKEND_IOURING; }
" LWS_HAVE_EVBACKEND_IOURING)
endif()

View file

@ -109,6 +109,7 @@
#cmakedefine LWS_WITH_DIR
#cmakedefine LWS_WITH_ESP32
#cmakedefine LWS_HAVE_EVBACKEND_LINUXAIO
#cmakedefine LWS_HAVE_EVBACKEND_IOURING
#cmakedefine LWS_WITH_EXTERNAL_POLL
#cmakedefine LWS_WITH_FILE_OPS
#cmakedefine LWS_WITH_FSMOUNT

View file

@ -188,7 +188,12 @@ elops_init_pt_ev(struct lws_context *context, void *_loop, int tsi)
backend_name = "Linux AIO";
break;
#endif
case EVBACKEND_KQUEUE:
#if defined(LWS_HAVE_EVBACKEND_IOURING)
case EVBACKEND_IOURING:
backend_name = "Linux io_uring";
break;
#endif
case EVBACKEND_KQUEUE:
backend_name = "kqueue";
break;
case EVBACKEND_DEVPOLL: