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:
parent
6bb116b8d8
commit
5d74cf668c
3 changed files with 12 additions and 1 deletions
|
@ -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()
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue