Lines Matching refs:entry

317 static void sh_delentry(struct Curl_sh_entry *entry,  in sh_delentry()  argument
320 Curl_hash_destroy(&entry->transfers); in sh_delentry()
3212 struct Curl_sh_entry *entry; local
3229 entry = sh_getentry(&multi->sockhash, s);
3230 if(entry) {
3242 entry = sh_addentry(&multi->sockhash, s);
3243 if(!entry)
3250 DEBUGASSERT(entry->readers);
3251 entry->readers--;
3254 DEBUGASSERT(entry->writers);
3255 entry->writers--;
3258 entry->readers++;
3261 entry->writers++;
3264 !Curl_hash_pick(&entry->transfers, (char *)&data, /* hash key */
3266 DEBUGASSERT(entry->users < 100000); /* detect weird values */
3268 entry->users++;
3270 entry->readers++;
3272 entry->writers++;
3274 if(!Curl_hash_add(&entry->transfers, (char *)&data, /* hash key */
3276 Curl_hash_destroy(&entry->transfers);
3281 comboaction = (entry->writers ? CURL_POLL_OUT : 0) |
3282 (entry->readers ? CURL_POLL_IN : 0);
3285 if(last_action && ((int)entry->action == comboaction))
3292 entry->socketp);
3302 entry->action = (unsigned int)comboaction;
3322 entry = sh_getentry(&multi->sockhash, s);
3325 if(entry) {
3328 DEBUGASSERT(entry->users);
3329 entry->users--;
3331 entry->writers--;
3333 entry->readers--;
3334 if(!entry->users) {
3339 multi->socket_userp, entry->socketp);
3344 sh_delentry(entry, &multi->sockhash, s);
3352 if(Curl_hash_delete(&entry->transfers, (char *)&data,
3391 struct Curl_sh_entry *entry = sh_getentry(&multi->sockhash, s); local
3394 " entry is %p", s, (void *)entry));
3395 if(entry) {
3400 multi->socket_userp, entry->socketp);
3405 sh_delentry(entry, &multi->sockhash, s);
3558 struct Curl_sh_entry *entry = sh_getentry(&multi->sockhash, s); local
3560 if(!entry) {
3575 Curl_hash_start_iterate(&entry->transfers, &iter);