diff options
Diffstat (limited to 'lib/multihandle.h')
| -rw-r--r-- | lib/multihandle.h | 10 | 
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/multihandle.h b/lib/multihandle.h index b65bd9638..a26fb619a 100644 --- a/lib/multihandle.h +++ b/lib/multihandle.h @@ -24,6 +24,7 @@  #include "conncache.h"  #include "psl.h" +#include "socketpair.h"  struct Curl_message {    struct curl_llist_element list; @@ -66,6 +67,10 @@ typedef enum {  #define CURLPIPE_ANY (CURLPIPE_MULTIPLEX) +#if defined(USE_SOCKETPAIR) && !defined(USE_BLOCKING_SOCKETS) +#define ENABLE_WAKEUP +#endif +  /* This is the struct known as CURLM on the outside */  struct Curl_multi {    /* First a simple identifier to easier detect if a user mix up @@ -134,6 +139,11 @@ struct Curl_multi {                                      previous callback */    bool in_callback;            /* true while executing a callback */    long max_concurrent_streams; /* max concurrent streams client to support */ + +#ifdef ENABLE_WAKEUP +  curl_socket_t wakeup_pair[2]; /* socketpair() used for wakeup +                                   0 is used for read, 1 is used for write */ +#endif  };  #endif /* HEADER_CURL_MULTIHANDLE_H */  | 
