mirror of
https://github.com/curl/curl.git
synced 2026-07-25 02:47:17 +03:00
multi-notify: add check macro
Since Curl_mntfy_dispatch_all() is called with high frequency and mostly unnecessary, add a check macro to avoid the call when not needed. Closes #20034
This commit is contained in:
parent
c85994d53b
commit
d405ac84ea
3 changed files with 9 additions and 3 deletions
|
|
@ -2798,7 +2798,7 @@ static CURLMcode multi_perform(struct Curl_multi *multi,
|
|||
if(multi_ischanged(multi, TRUE))
|
||||
process_pending_handles(multi);
|
||||
|
||||
if(!returncode)
|
||||
if(!returncode && CURL_MNTFY_HAS_ENTRIES(multi))
|
||||
returncode = Curl_mntfy_dispatch_all(multi);
|
||||
|
||||
/*
|
||||
|
|
@ -3195,7 +3195,7 @@ out:
|
|||
if(multi_ischanged(multi, TRUE))
|
||||
process_pending_handles(multi);
|
||||
|
||||
if(!mresult)
|
||||
if(!mresult && CURL_MNTFY_HAS_ENTRIES(multi))
|
||||
mresult = Curl_mntfy_dispatch_all(multi);
|
||||
|
||||
if(running_handles) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue