mirror of
https://github.com/curl/curl.git
synced 2025-09-14 08:02:44 +03:00
multi: use pipe instead of socketpair to *wakeup()
If pipe() is present. Less overhead. Closes #12142
This commit is contained in:
parent
e160d17a02
commit
03a70edc50
|
@ -55,14 +55,14 @@
|
|||
#include "curl_memory.h"
|
||||
#include "memdebug.h"
|
||||
|
||||
#ifdef __APPLE__
|
||||
#ifdef HAVE_PIPE
|
||||
|
||||
#define wakeup_write write
|
||||
#define wakeup_read read
|
||||
#define wakeup_close close
|
||||
#define wakeup_create pipe
|
||||
|
||||
#else /* __APPLE__ */
|
||||
#else /* HAVE_PIPE */
|
||||
|
||||
#define wakeup_write swrite
|
||||
#define wakeup_read sread
|
||||
|
|
Loading…
Reference in New Issue
Block a user