mirror of
https://github.com/curl/curl.git
synced 2026-08-24 22:23:58 +03:00
eventfd: allow for all CPUs
After fixing support for x32, unlock eventfd support for all CPUs.
Before this patch, it was explicitly limited to 64-bit ones.
You can disable eventfs manually on systems where it's auto-detected:
- cmake: `-DHAVE_EVENTFD=0`
- configure: `export ac_cv_func_eventfd=0`
Ref: c2aa504ab9 #16239
Closes #16277
This commit is contained in:
parent
bf823397ba
commit
4d01de3529
4 changed files with 8 additions and 25 deletions
|
|
@ -170,7 +170,7 @@ void destroy_thread_sync_data(struct thread_sync_data *tsd)
|
|||
* close one end of the socket pair (may be done in resolver thread);
|
||||
* the other end (for reading) is always closed in the parent thread.
|
||||
*/
|
||||
#ifndef USE_EVENTFD
|
||||
#ifndef HAVE_EVENTFD
|
||||
if(tsd->sock_pair[1] != CURL_SOCKET_BAD) {
|
||||
wakeup_close(tsd->sock_pair[1]);
|
||||
}
|
||||
|
|
@ -293,7 +293,7 @@ CURL_STDCALL getaddrinfo_thread(void *arg)
|
|||
else {
|
||||
#ifndef CURL_DISABLE_SOCKETPAIR
|
||||
if(tsd->sock_pair[1] != CURL_SOCKET_BAD) {
|
||||
#ifdef USE_EVENTFD
|
||||
#ifdef HAVE_EVENTFD
|
||||
const uint64_t buf[1] = { 1 };
|
||||
#else
|
||||
const char buf[1] = { 1 };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue