mirror of
https://github.com/curl/curl.git
synced 2026-07-25 02:37:18 +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
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue