mirror of
https://github.com/curl/curl.git
synced 2026-08-25 23:23:31 +03:00
lib: add meta_hash to connection, eliminate hash_offt
With a meta_hash at each connection (similar to easy handle, let multi_ev.c store its pollsets as meta data, no longer needing its own hashes. This eliminates the last use of Curl_hash_offt. Remove it. Closes #17095
This commit is contained in:
parent
1d66a769d7
commit
657aae79c0
18 changed files with 126 additions and 343 deletions
|
|
@ -25,17 +25,17 @@
|
|||
***************************************************************************/
|
||||
|
||||
#include "hash.h"
|
||||
#include "hash_offt.h"
|
||||
|
||||
struct Curl_easy;
|
||||
struct Curl_multi;
|
||||
struct easy_pollset;
|
||||
struct uint_bset;
|
||||
|
||||
/* meta key for event pollset at easy handle or connection */
|
||||
#define CURL_META_MEV_POLLSET "meta:mev:ps"
|
||||
|
||||
struct curl_multi_ev {
|
||||
struct Curl_hash sh_entries;
|
||||
struct uint_hash xfer_pollsets;
|
||||
struct Curl_hash_offt conn_pollsets;
|
||||
};
|
||||
|
||||
/* Setup/teardown of multi event book-keeping. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue