mirror of
https://github.com/curl/curl.git
synced 2026-07-27 17:48:55 +03:00
multi: notify rename, remove the last stragglers
in the public API.
Follow-up to 357808f4ad
Closes #18910
This commit is contained in:
parent
7ddbde4f73
commit
53be8166b2
9 changed files with 20 additions and 20 deletions
|
|
@ -173,13 +173,13 @@ static void mstate(struct Curl_easy *data, CURLMstate state
|
|||
data->mstate = state;
|
||||
switch(state) {
|
||||
case MSTATE_DONE:
|
||||
CURLM_NTFY(data, CURLM_NTFY_EASY_DONE);
|
||||
CURLM_NTFY(data, CURLM_NOTIFY_EASY_DONE);
|
||||
break;
|
||||
case MSTATE_COMPLETED:
|
||||
/* we sometimes directly jump to COMPLETED, trigger also a notification
|
||||
* in that case. */
|
||||
if(oldstate < MSTATE_DONE)
|
||||
CURLM_NTFY(data, CURLM_NTFY_EASY_DONE);
|
||||
CURLM_NTFY(data, CURLM_NOTIFY_EASY_DONE);
|
||||
/* changing to COMPLETED means it is in process and needs to go */
|
||||
DEBUGASSERT(Curl_uint_bset_contains(&data->multi->process, data->mid));
|
||||
Curl_uint_bset_remove(&data->multi->process, data->mid);
|
||||
|
|
@ -226,7 +226,7 @@ static void ph_freeentry(void *p)
|
|||
static void multi_addmsg(struct Curl_multi *multi, struct Curl_message *msg)
|
||||
{
|
||||
if(!Curl_llist_count(&multi->msglist))
|
||||
CURLM_NTFY(multi->admin, CURLM_NTFY_INFO_READ);
|
||||
CURLM_NTFY(multi->admin, CURLM_NOTIFY_INFO_READ);
|
||||
Curl_llist_append(&multi->msglist, msg, &msg->list);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue